Easy Tutorial
❮ Event Animationstart Prop Source Src ❯

JavaScript RegExp \s Metacharacter


Definition and Usage

The \s metacharacter is used to find whitespace characters.

Whitespace characters can be:

Syntax


Browser Support

All major browsers support the \s metacharacter.


Example

Perform a global search for whitespace characters in a string:

The text below marked shows where the expression matches:

❮ Event Animationstart Prop Source Src ❯