I just learned how to validate a text , i know already how to check if the string contains only capital and non capital letters, if its purely numerical but I can't figure out how to put this into code:
The text may contain upper and lower case letters
The text may contain numbers
The text may contain underscores
The text may not contain spaces
The text may not contain other characters besides alphanumerics and underscores
The text may not be = ""
If these conditions are satisfied then the text will be valid otherwise an error will be reported.
Can anyone please help me encode this using regular expression?
Thanks!!!