Const
Matches if a string contains any whitespace character.
Whitespace includes:
\t
\n
\r
\f
\v
Pattern:
\s
HAS_WHITESPACE_REGEX.test("Hello World"); // trueHAS_WHITESPACE_REGEX.test("Hello\tWorld"); // trueHAS_WHITESPACE_REGEX.test("Hello\nWorld"); // trueHAS_WHITESPACE_REGEX.test("HelloWorld"); // false Copy
HAS_WHITESPACE_REGEX.test("Hello World"); // trueHAS_WHITESPACE_REGEX.test("Hello\tWorld"); // trueHAS_WHITESPACE_REGEX.test("Hello\nWorld"); // trueHAS_WHITESPACE_REGEX.test("HelloWorld"); // false
Matches if a string contains any whitespace character.
Whitespace includes:
)\t)\n)\r)\f)\v)Pattern:
\s→ any whitespace character