On or about Tue, Oct 15, 2002 at 10:23:19AM +0000, martin bower typed:

>$html =~ s/<LINK>(.*)<\/LINK>/<A HREF='$1'>$1<\/A>/gi;

Nearly.

$html =~ s/<LINK>([^:]*):(.*)<\/LINK>/<A HREF="$1">$2<\/A>/gi;

(Totally untested, as with all code I post here.)

Remembering that if you have people who think "www.foo.com" is a URL you
may want to add an http:// on the front to make it work.

Roger

Reply via email to