Easy Tutorial
❮ Prop Canvas Miterlimit Prop Video Src ❯

JavaScript RegExp \D Metacharacter


Definition and Usage

The \D metacharacter is used to find a non-digit character.

Syntax


Browser Support

All major browsers support the \D metacharacter.


Example

Perform a global search for non-digit characters in a string:

The highlighted text below shows where the expression matches: Give100%!


❮ Prop Canvas Miterlimit Prop Video Src ❯