@SAPlayer I'd actually argue we shouldn't bother with a try/catch here.  This is equivalent to the next case below, where we also construct a pre-escaped regexp.

Any unexpected internal errors like this will get logged to the console, break into the debugger if you have dev tools open, etc.  That seems like the correct thing to do here and in the existing case below too.  I don't see any particular reason why this case would need to be guarded more than the one below.