This is an interesting one. I know that modern browsers have separate JITs for regexps, so regexps should be blazing fast in general. However, there are loads of string tricks in modern browsers too--I don't know of any related to string *comparison*, but that doesn't mean anything.

I also don't know if the logger will run through the regexp often enough to meaningfully warm the regexp JIT.

I guess we'll just see if the whole thing is performant enough, and get into details later, if we need to.