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? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -