Hi,
Documentation for RuleCondition in declarativeNetRequest API says:
regexFilter can be used as "Regular expression to match against the network request url. This follows the
RE2 syntax".
As per
RE2 syntax, dot '.' is not a metacharacter and can match itself.
{
"id": 7,
"priority": 1,
"action": {
"type": "redirect",
"redirect": {
"regexSubstitution": "https://\\
1.xyz.com/"
}
},
"condition": {
"regexFilter": "^
https://www\\.(abc|def)\\.xyz\\.com/",
"resourceTypes": [
"main_frame"
]
}
},
Is there an exhaustive list of special characters to be escaped in regexFilter?
Thanks,
Vaibhav Nigam