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