java - Regex to check for string with 2 or more spaces -


i tried write regex validating following string, good <3 spaces> morning

the regex tried \s{2,}. regex match failed

the string must match entirly

"good   morning".matches(".*\\s{2}.*"); 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

ios - iPhone/iPad different view orientations in different views , and apple approval process -

Shrink a YouTube video to responsive width -