Check the regex