@timbray
1) At first I thought your “regular-depression” was a joke. Now thinking it was an auto-correctism.
2) instead of using a different escape character, wouldn’t it be better to protect the whole regex by sending it as pre-compiled binary? E.g. via a pre-processor mechanism.