Q
questionmarc420
hi,
ok i have ap eice of code which turns emaill addys into clickable
links. heres the code.
data_body = data_body.replaceAll("([a-zA-Z_0-9]++@)[^\\s<]+", "<A
HREF=\"mailto:$0\">$0</a>");
the code works fine.. itll search the string for an addy and itll work.
however if ther is a "." or an underscore the link stops there.
(e-mail address removed) <-- works
(e-mail address removed) <---- only (e-mail address removed) works
I've been frustrated trying to find out how to add the punctuation in
this reg exp but im lost.
If someone can help please do
thanks
morc
ok i have ap eice of code which turns emaill addys into clickable
links. heres the code.
data_body = data_body.replaceAll("([a-zA-Z_0-9]++@)[^\\s<]+", "<A
HREF=\"mailto:$0\">$0</a>");
the code works fine.. itll search the string for an addy and itll work.
however if ther is a "." or an underscore the link stops there.
(e-mail address removed) <-- works
(e-mail address removed) <---- only (e-mail address removed) works
I've been frustrated trying to find out how to add the punctuation in
this reg exp but im lost.
If someone can help please do
thanks
morc