At 3/20/2002, you wrote:
>$newstr = preg_replace('/\b(\S+@\S+)\b/',
>    '<a href="mailto:\1";>\1</a>', $oldstr);
>Take the time to learn Perl-style regular expressions. You can practically
>write Photoshop with them.

Thanks! It seems to work fine.
If I had time I'd try to learn regexp, but first I'll have to learn how not 
to be busy all the time.


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to