Subj : URL encoding To : Angus Mcleod From : Deuce Date : Sun Dec 05 2004 03:17 pm Re: URL encoding By: Angus Mcleod to All on Sat Dec 04 2004 08:10:00 > modified. The first script uses an RE directly as in: > > s/([^-_\.!~\*'\(\)A-Z0-9])/sprintf("%%%02X", ord($1))/sige; > > to encode those parts that are available to it (specifically the artist > and album directory names). The generated script calls my little > urlencode program to do the same. You may be interested in looking at the URI RFC... it includes a regex for splitting up a URI and mentions which bits need which chars encoded. Uh... 2396 it is... it contains this gem: ^(([^:/?#]+):)?(//([^/?#)*))?([^?#]*)(\?([^#]*))?(#(.*))? Whee! --- þ Synchronet þ telnet://FreeBSD.synchro.net ``Penguins are tasty snacks'' .