Converts PCRE regexp strings to JavaScript RegExp instances