Added regex search to the parser.