Regex To Match Words With No Digits

A regular expression to match all words excluding digits. This is a very common requirement on many occasions especially when your requirement is to find all the words excluding digits from a given pattern.

/\b[^\d\W]+\b/g

Matches:

  • Regex Pattern
  • Regex 123 Pattern

Non-Matches:

  • 123
  • ^&*

See Also:

Regex Is Copied!