javascript - Basic regexp question -
I am using it as validation regexp for the areas of my name.
How do I modify it to check at least 2 characters?
'/ ^ [a-zA-Zà ¥ Ã + a ?? One ?? One ?? I use it like this: if (name_exp.test ($ ("$" + "+" Name_input) .val ())) {Everything is alright! }
This should do the trick: {2,} 2 or more characters will be required
/ ^ [a-zA-jade ¥ Ã + a ?? One ?? One ?? S \ -] {2,} $ /
Comments
Post a Comment