I want to check if a Vb.net string contains at least 3 non white space characters of which at least one non numeric character.
Can anyone help creating the regular expression for it?
ab c valid
2c a valid
abc valid
1 invalid
123 invalid
I have tried this one
^[A-Z]{3}$
but It is not working
You can use a positive look-ahead to assure that there is at least one character that is not a digit (in this example A-Z), then require three non-white-space characters (
\S) separated by zero or more white-space characters (\s).