i need to ignore anything that is one space, and empty space at least bigger than one space should be matched…
"MARY HAD A LITTLE LAMB"
i expect
"MARY", "HAD A LITTLE", "LAMB"
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Whitespace matching is
\sand you can supply a minimum and maximum in curly braces. You can also omit either of them, like so:So your code would be like:
You can test it online here!