allow spaces regex code example
Example 1: regex ignore spaces
\s* ignore spaces
eg \s*yourregex\s*
Example 2: space allow in regex
Just add a space in your character class.
^[a-zA-Z0-9_ ]*$
\s* ignore spaces
eg \s*yourregex\s*
Just add a space in your character class.
^[a-zA-Z0-9_ ]*$