A simple regular expression matching engine