It's not getting rid of special characters, it's converting text containing hexadecimal values the corresponding bytes, if the text (either $value or $name) contains a "%" symbol, followed by 1 or more hexadecimal digits.
Read up on regular expressions, and you'll see that the /e switch at the end has the effect of doing an eval on the replacement text.
Also, take a look at the hex function.
In reply to Re: Regular Confuscion
by liverpole
in thread Regular Confuscion
by Imagist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |