I know very little about regualar expressions, but from what i have seen, they dont normally cause any significant delay, but could cause huge delays depending on the regex.

You could reduce significantly your overhead by maybe using ON *:TEXT:!*:#: and having all of your commands begin with !, a simple wild match well then only allow !<text> to be compared to the regex's of the actual commands.