How to write a regular expression in no particular order?
I have to do a javascript check on a string. The string must have 6
letters and 2 numbers but not necessarily in that order, also 2 numbers
and 6 letters.
At the time i have:
/^[A-Za-z]{6,}[0-9]{2,}$/;
Thanks a lot!
No comments:
Post a Comment