in reply to Re: Re: Automatically hyperlinking text fails with newlines
in thread Automatically hyperlinking text fails with newlines

well then... you could pass $1 as a function, since you are matching the hyperlink with the \n, similar to...
s/regex/make_link($1)/eg; sub make_link { my $url = $_[0]; $url =~ s/\s+//g; qq`<A HREF="$url">$url</A>`; }

                - Ant
                - Some of my best work - Fish Dinner