Don't listen to these guys. You totally can parse context-free grammars with regex if you break the task into smaller pieces. You can generate the correct pattern with a script that does each of these in order:
I haven't quite finished the last part myself, but I know I'm getting close. It keeps throwing CthulhuRlyehWgahnaglFhtagnException
s for some reason, so I'm going to port it to VB 6 and use On Error Resume Next
. I'll update with the code once I investigate this strange door that just opened in the wall. Hmm.
P.S. Pierre de Fermat also figured out how to do it, but the margin he was writing in wasn't big enough for the code.