Regular Expression To Match Non-numeric Characters

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: