From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript RegExp Object
The \s metacharacter is used to find a whitespace character.
A whitespace character can be:
| new RegExp("\s") or simply: /\s/ |
ExampleDo a global search for whitespace characters in a string:
All the spaces in the text will get a match (four matches):
Try it yourself » |
JavaScript RegExp Object
From http://www.w3schools.com (Copyright Refsnes Data)