I am trying to create a regex pattern to match abcdef, abc def, etc.
The patterns I tried are:
[a-z]{3}[\s?][a-z]{3}
[a-z]{3}[\s*][a-z]{3}
[\w]{3}[\s?][\w]{3}
\w{3}\s?\w{3}
All of these seem to work for abc def, but not for abcdef.
{EDIT}
AB CD 12 ABC/15 DEF
.*\bAB CD\b\s?(\d+)\s?\bABC\b[/](\d+)\s?\bDEF\b
i am trying to extract 12 and 15.
?and*do not mean "0 or 1" and "0 or more"