DFA: a fast and modular replacement for regular expressions