A regular expression that matches all characters except digits 0-9. This can be useful to find out and replace all non-numeric characters in a string.
/[^0-9]/
Matches:
- a
- b
- c
Non-matches:
- 1
- 0
- 9
See Also:
- Positive Integer Regular Expression
- Negative Number Regular Expression
- Regex To Match Positive or Negative Number
- Regular Expression To Match Non-numeric Strings