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 To Match Any Word In A String Excluding Spaces
- Regex To Match A Part Of A String And Ignore Everything After A Particular Text
- Regex Match All Characters Except Space (Unless In Quotes)