Hello Alexander,
On Friday, February 20, 2004 at 7:16:29 PM you [AL] wrote (at least in
part):
dh>> do you mean %StrReplace?
AL> Yes
OK, I thought you maybe meant a "more serious" solution, not only
directed to replace '%20' :-)
dh>> That would probably be bad to setup..
AL> Not in case of one replacement, full URL-encode will _be_ big headache
without a regexp engine capable of executing code in replacement code
plus 'hex()' and 'chr()' functions: definitely yes.
,----- [ ]
| $name = '[EMAIL PROTECTED]';
| $name =~ s/%([0-9a-fA-F]{2})/chr(hex($1))/ge;
`-----
Does the trick quite good ... sadly yet only in Perl :-/
--
Regards
Peter Palmreuther
(The Bat! v2.04.4 on Windows XP 5.1 Build 2600 Service Pack 1)
"Reliable software must kill people reliably." -- Andy Mickel
________________________________________________________
http://www.silverstones.com/thebat/TBUDLInfo.html