Lets say that you want to match a string with the following regex: ".when is (\w+)." - I am trying to get the event after 'when is'
I can get the event with matcher.group(index) but this doesnt work if the event is like Veteran's Day since it is two words. I am only able to get the first word after 'when is'
What regex should I use to get all of the words after 'when is'
Also, lets say I want to capture someones bday like
'when is * birthday
How do I capture all of the text between is and birthday with regex?
\wdoesn't contain a space or a quote.\w===[a-zA-Z0-9_]\w, we assume you mean the regular expression\w, which is expressed as\\win Java String syntax.