regex include whitespace 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 ignore spaces
\s* ignore spaces
eg \s*yourregex\s*
\s is the regex character for whitespace. It matches spaces, new lines, carriage returns, and tabs.
\s* ignore spaces
eg \s*yourregex\s*