Hi Richard
I used the expression you gave for the following string,
string1=" welcome to rahul raj's website
please select from the following options
email: rahul_raj77@yahoo.com";
$string1= preg_replace("/([w.]+)(@)([w.]+)/i", "<a href=\"mailto:$0\">$0</a>", $string1);
echo($string1);
It displays as follows
welcome to rahul raj's website please select from the following options email:
rahul_raj77@yahoo.com
It still doesn't add a link to email...
can you please check this again..
If possible can you tell me wat does "/([w.]+)(@)([w.]+)/i", mean,
because if I understand it well may be I can solve my problem
Thanks for your help and time.
Rahlu