Regular Expressions Question.
- From: questionmarc420@xxxxxxx
- Date: 23 Jan 2006 09:16:22 -0800
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.
asfd@xxxxxxxxxxx <-- works
as_df@xxxxxxxxxxx <---- only df@xxxxxxxxxxx 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
.
- Follow-Ups:
- Re: Regular Expressions Question.
- From: Joe Attardi
- Re: Regular Expressions Question.
- From: questionmarc420
- Re: Regular Expressions Question.
- Prev by Date: Re: Connection problem with IKVM.net and .net DLL
- Next by Date: Invitation to JAVA professionals (Need Help)
- Previous by thread: to get the marks secured in the examination
- Next by thread: Re: Regular Expressions Question.
- Index(es):