what is the meaning of \\ in the reg exps of ghostery-bugs.js?
I thought that \\ meant \ (special character), but it has no sense here :
/(ad\\.yieldmanager\\.com\\/
Help get this topic noticed by sharing it on
Twitter,
Facebook, or email.
Twitter,
Facebook, or email.
Promoted
Response
-
CHAMP
1Slash is an escape character in javascript. In this particular instance, we need to escape twice: first time for string text, second, for when its converted into regular expression.
-
CHAMP
1Slash is an escape character in javascript. In this particular instance, we need to escape twice: first time for string text, second, for when its converted into regular expression.-
matempo April 30, 2010 07:48Thanks!EditDeleteRemove
-
-
-
-
Loading Profile...




