A regular expression that matches the first word after a specific word in a sentence.
/(?<=\bWORD\s)(\w+)/g
Matches:
- A regular expression that matches the first word after a specific word
- A regular expression that matches the first word after a specific word in a sentence.
See Also:
- Regex To Match A Part Of A String And Ignore Everything After A Particular Text
- Regex To Match The Last Occurrence Of Characters In A String
- Regex To Match The First Word Of Each Line In A Multiline Text Block
- Regex To Match Everything After A Specific Character