Easy Tutorial
❮ Prop Tabledata Cellindex Prop Input Time Form ❯

JavaScript RegExp \w Metacharacter


Definition and Usage

The \w metacharacter is used to find a word character.

Word characters include: a-z, A-Z, 0-9, and the underscore, including the _ (underscore) character.

Syntax


Browser Support

All major browsers support the \w metacharacter.


Example

Perform a global search for word characters in a string:

The text below, marked, shows where the expression matches: Give 100%!

❮ Prop Tabledata Cellindex Prop Input Time Form ❯