how to seek and convert an email address to mailto link
| From: | Pekka Saarinen | Date: | Tue, 19 Mar 2002 15:16:25 +0000 |
| Subject: | how to seek and convert an email address to mailto link | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-89155@lists.php.net to get a copy of this message | ||
Hi,
I need to search text for @ and replace the mail address around it (i.e. text between previous and following spaces) so that if I have text
Foobar foobar foo@foo.com foobar foobar.
It'll convert it to
Foobar foobar <a href="mailto:foo@foo.com">foo@foo.com</a> foobar foobar.
Anyone?
Thanks,
Pekka