Easy Tutorial
❮ Event Onbeforeunload Met Table Deletethead ❯

JavaScript RegExp \S Metacharacter


Definition and Usage

The \S metacharacter is used to find a non-whitespace character.

Whitespace characters can be:

Syntax


Browser Support

All major browsers support the \S metacharacter.


Example

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

The highlighted text below shows where the expression matches: Is this all there is?


❮ Event Onbeforeunload Met Table Deletethead ❯