how to ignore space when checking regex code example Example: regex ignore spaces \s* ignore spaces eg \s*yourregex\s*