I want to make a regular expression that only accepts lowercase letters and does not allow uppercase letters and does not allow white space. So far I have this:
\S[a-z]
Please help me, I dont know how make that I'm working on it in reactJS with the ant library, and I want to add a rule to my form but the regular expression doesn't work for what I really need
CodePudding user response:
/^[a-z] $/
^ - start of string
$ - end of string
[] - Character Classes
you can use for one or more OR * zero or more