I\'m trying to match @(\\w+) in a div content and remove it.
Here\'s what i\'ve tried : http://jsfiddle.net/mxgde6m7/1/ .
@(\\w+) works , but it doesn\'t replace
Using a RegExp constructor, you need two backslashes \\ in place of each backslash \.
\\
\
var find = '@(\\w+)';