JavaScript RegExp Object
The \s metacharacter is used to find a whitespace character.
A whitespace character can be:
![]()
The \s metacharacter is supported in all major browsers.
Do a global search for whitespace characters in a string:
All the spaces in the text will get a match (four matches):
JavaScript RegExp Object
Your message has been sent to W3Schools.