Redirect URL with a match


New Member
Hi, I am new on this forum, but are familiar with regular expressions.

I tried a regexp for redirecting a Youtube URL by picking the video ID from it.

||$replace=/v=([A-Za-z0-9]+)/<html><script>window.location = 'http:\/\/mysite/video=$1';<\/script><\/html>/s
With this expression matches perfectly, but with an Adguard filter it only works when I omit the '$1' (which should be the first match, in my case the video ID after the 'v=').
Is it possible to extract the matches with Adguard user filters ?