javascript - How to check if a string has consecutive whitespace 3 -


i have textbox , want invalidate 2 or more consecutive white-spaces in field using javascript.

this regular expression looks 3 or more white spaces chars.

/\s{3,}/ 

live demo


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -