regexTest function added.