regular expressions application in testing