View Single Post
  #3  
Old 17.06.2021, 17:10
inzzzomnia inzzzomnia is offline
JD Fan
 
Join Date: Apr 2017
Posts: 72
Default

The double backslashes is was confuses me the most in your examples, can't figure out what purpose they serve since there's no single backslash to escape at that place in the URL.

This gets a green light with java 8 selected on regex101

(https:\/\/img.nbc.com\/sites\/[a-z]*\/files\/images\/\d*\/\d*\/\d*\/NUP_\d*_\d*.JPG)\?impolicy=.*&imwidth=\d*&imdensity=\d*

and match what I try to fix

**External links are only visible to Support Staff****External links are only visible to Support Staff**

But JD still wont accept

Code:
[{
	"enabled": true,
	"name": "nbc",
	"pattern": "(https:\/\/img.nbc.com\/sites\/[a-z]*\/files\/images\/\d*\/\d*\/\d*\/NUP_\d*_\d*.JPG)\?impolicy=.*&imwidth=\d*&imdensity=\d*",
	"rule": "REWRITE",
	"rewriteReplaceWith": "$1"
}]
Why not?
Reply With Quote