Replaced the regex engine with a more complete DFA matcher as well as a large refactor to go with it