From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript RegExp Object
The \D metacharacter is used to find a non-digit character.
| new RegExp("\D") or simply: /\D/ |
ExampleDo a global search for non-digit characters:
The marked text below shows where the expression gets a match:
Try it yourself » |
JavaScript RegExp Object
From http://www.w3schools.com (Copyright Refsnes Data)