I need to capture such string as a TWO separate matches:
MLB m L B
So output should be two matches:
1. MLB
2. m L B
There maybe any or zero characters between earch of three letters in match.
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.
So one match always has three characters that may be whitespace-separated?
matches
MLBorm L Min your example.To match precisely those letters, use
and activate the case-insensitive option of your regex implementation.
To allow any character between the letters:
(and you can’t get any more basic than that in regex – you’ll want to read a regex tutorial)