I hope this will have a fairly quick and easy answer. I use regular-expressions.info to help me get the correct regular expression to convert the URL-encoded ISO-8859-1 character ("% A3") to the URL-encoded UTF-8 character ("% C2% A3") .
In other words, I just want to exchange% A3 for% C2% A3 when% A3 no longer has the% C2 prefix.
So, I would think the following would work:
Regular Expression: (?!(\%C2))\%A3 Replace With: %C2%A3
But this is not so, and I cannot understand why!
I assume that my syntax is just a bit wrong, but I can't figure it out! Any ideas?
FYI - I know that the following will work (and used this as a workaround in the meantime), but really want to understand why the first does not work.
Regular Expression: ([^\%C2])\%A3 Replace With: $1%C2%A3
TIA!
Frostbite xiii
source share