in reply to Parsing out URLs with regex
Don't use $1 unless you are absolutely sure the match succeeded.
-- Randal L. Schwartz, Perl hacker Be sure to read my standard disclaimer if this is a reply.