Re: how to seek and convert an email address to mailto link
| From: | Pekka Saarinen | Date: | Tue, 19 Mar 2002 19:55:50 +0000 |
| Subject: | Re: how to seek and convert an email address to mailto link | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-89186@lists.php.net to get a copy of this message | ||
At 3/19/2002, you wrote:
Hi, I think the following lines could help you : $line = "Foobar foobar foo@foo.com foobar foobar"; list($var1,$var2,$var3,$var4,$var5) = explode(" ",$line); echo "$var1 $var2 <a href="mailto:$var3">$var3</a>." ".$var4." ".$var5"; more or less... i am a newbie in this stuff... hope it helps youI need to parse big texts (from SQL), so I think the best solution would be some regexp - only thing is that I have no clue on rexexps....