Perl-Sensitive Sunglasses | |
PerlMonks |
Re: advanced regExby fishbot_v2 (Chaplain) |
on Nov 02, 2005 at 13:26 UTC ( [id://504912]=note: print w/replies, xml ) | Need Help?? |
This is a regex for unpacking URL-encoded strings. Your input string contains no encoded entities, and it passes through unchanged. URL encoded text entities are of the form %FF where FF is an arbitrary byte in hex. The represent the character with the ordinal value of that byte. The regex grabs these three character sequences and translates them back into the ASCII equivalent. update: see hex and pack for details of the hex-to-char translation.
In Section
Seekers of Perl Wisdom
|
|