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. > >miguel
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. Pekka -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php