in reply to Quick Regex Question
See perlre, pack and unpack. If you need to use another character besides '%', go for it.s/([^\w-])/'%'.unpack("H*", $1)/eg; # %5e%25%40%7cCaD5H
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Quick Regex Question
by Anonymous Monk on Feb 08, 2001 at 00:19 UTC | |
by chipmunk (Parson) on Feb 08, 2001 at 00:32 UTC | |
by Fastolfe (Vicar) on Feb 08, 2001 at 00:23 UTC |