JS Regex Translation

Here's the machinery that translates DXR-flavored (Python- and PCRE-ish except without a few fancy feature like lookarounds (so far)) to JS ones. Really, the only difference is that \c means something in JS's regexes but not in Python's. You can see in the tests that the ones expecting a difference are very few.