Escape RegExp.lastMatch ($&) in a string
Is there a RegExp.escape function in Javascript?
Escape & in a string? Escape string in javascript Regexp in Javascript JavaScript escape string issue Escape quotes inside certain html elements with regexp? Escape a variable in jquery How can I use Javascript RegExp to escape brackets? Escape in JavaScript Simple jQuery / javascript method to escape special characters in string for regexp javascript escape error URL escape for jQuery Build(escape) a JavaScript regexp in C# Need to escape the json Escape variable for JavaScript in asp.net How do I escape a string used in a RegExp object JavaScript escape array of array Javascript: escape %d in string javascript escape string Which characters to escape when using RegExp object in JavaScript? How to properly escape characters in regexp JSON Javascript escape PHP escape in javascript Escape Javascript in PHP Escape_javascript problem JavaScript regexp? escape & in url Escape <?php ... ?> on javascript file Using variable with escape character in RegExp Escape regexp strings?