Regex To Match Words With No Digits

Category: Strings

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:

Rate This Regex
Sending
User Review
0 (0 votes)

Expression Flags

Flags Description
i Ignore case sensitive.
g Allows global search.
m Allows multiline search.