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

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -