From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript RegExp Object
The \d metacharacter is used to find a digit from 0-9.
| new RegExp("\d") or simply: /\d/ |
ExampleDo a global search for digits:
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)