JavaScript RegExp \D Modifier
Complete RegExp Object Reference
Definition and Usage
When the \D modifier is set the regular expression finds any non digit
character.
Syntax
Example
In the following code we will do a global search for any character that is
not a digit:
var str = "Give 100%";
var patt1 = /\D/g;
|
The marked text below shows where the RegExp gets a match:
Try-It-Yourself Demos
\D
How to use the "\D" modifier to find all the occurrences of non digit characters
using a string object.
Complete RegExp Object Reference
Whether you're new to XML or already an advanced user, the user-friendly views
and powerful entry helpers, wizards, and debuggers in XMLSpy are designed to
meet your XML and Web services development needs from start to finish.
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- Support for Office Open XML (OOXML)
- Graphical WSDL editor & SOAP debugger
- Java, C#, C++ code generation
- And much more!
Download a fully functional free 30-day trial today!
|