A simple regular expression engine