Home : Products : Gossamer Links : Development, Plugins and Globals :

Products: Gossamer Links: Development, Plugins and Globals: Re: [Evoir] BR tags in admin submissions: Edit Log

Here is the list of edits for this post
Re: [Evoir] BR tags in admin submissions
Hi I think this may work for emails...:

$Full_Story =~ s,([^\s]+@[^\s]+\.[^\s]+),<a href="mailto:$1">$1</a>,sg;

...and for urls....

$Full_Story =~ s,(http://[\w\.-]+),<a href="$1">$1</a>,sg;

The code for checking the email address could just be .+@.+\..+ but that won't work in this case.

I can't believe how bad the code was in this thread after I re-read it this morning :) ...it was only from September too Laugh....having said that the code above isn't great either.

Last edited by:

PaulW: Dec 14, 2001, 4:22 AM

Edit Log: