|
|
JavaScript RegExp \D Metacharacter
JavaScript RegExp Object
Definition and Usage
The \D metacharacter is used to find a non-digit character.
Syntax
new RegExp("\D")
or simply:
/\D/ |
Example
Example
Do a global search for non-digit characters:
var str="Give 100%!";
var patt1=/\D/g;
|
The marked text below shows where the expression gets a match:
Try it yourself »
|
JavaScript RegExp Object
The Creators of XMLSpy are Pleased to Announce
|
|
|