# Turned RegexEngine into Regex class that parses a pattern once and can apply it repeatedly (just like JS RegExp objects)
# RootToken's reset() can now recursively reset() all of its subtokens. This might be sensible for other compound tokens as well, just for safety.