Regex To Match The First Word After A Specific Word

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: