I am using Privoxy 3.0.10.0 to filter web pages before they're passed on to the browser.
I can't figure out why this simple regex doesn't trigger a rewrite. Maybe someone more experienced will have an idea:
Here's what it looks like when I hit Firefox's CTRL-U to view the HTML source:
<font color=#FF4AFF>JohnDoe</font>
Here's my regex; I've also added the "i" switch to ignore case, to no avail
s|(<font color=.+?>JohnDoe</font>)|<span class=myclass>$1</span>|g
Thanks for any hint.
<span>tags, or did you expect only theJohnDoepart to be copied, like<span class=myclass>JohnDoe</span>? Just to make sure that you're not overlooking<span class=myclass><font color=#FF4AFF>JohnDoe</font></span>in the result. – Arjan Jul 25 '09 at 10:31