regex match with space code example
Example 1: whitespace regex
\s is the regex character for whitespace. It matches spaces, new lines, carriage returns, and tabs.
Example 2: regex tab
Regex of tab representation:
[ \t]
\s is the regex character for whitespace. It matches spaces, new lines, carriage returns, and tabs.
Regex of tab representation:
[ \t]