front: Simplify cheat code parsing, precompile regex matchers.

Again, no performance penalty observed. If anything, there seems to be a
very slight boost, perhaps due to the regex precompilation.