regex check a string for white space code example
Example: whitespace regex
\s is the regex character for whitespace. It matches spaces, new lines, carriage returns, and tabs.
\s is the regex character for whitespace. It matches spaces, new lines, carriage returns, and tabs.