TRE regular expression engine