Function checkStringMatchesRegex

Results in "validity" for any string that matches any of the specified regular expressions