On Tue, 15 Oct 2002, Roger Burton West wrote: > 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.)
Hopefully this code will never see something like: <LINK>http://www.foo.com:81:go here</LINK> or have to agonize over <LINK>http://www.foo.com:1 hell of an interesting page</LINK> How robust does this need to be, Martin? -- Chris Devers [EMAIL PROTECTED]