Jeff,
that regexp works for me.
I would be interested in seeing something similar for URL's -- I have been
experimenting but got stuck.
Something like:
REREPLACE(String,"((http:\/\/|www\.|WWW\.)[^[:space:]]+)([[:space:]]|\.)","<
A HREF=\1>\1</A>\3","ALL")
(Two problems with the above one: it doesn't add http:// in front of links
that miss that, and it includes trailing dots (like a link at the end of a
sentence)).
-------------------------------------------------------------
Hugo Ahlenius E-Mail: [EMAIL PROTECTED]
Project Officer Phone: +46 8 7410451
UNEP GRID-Arendal Fax: +46 733 403285
Stockholm Office Mobile: +46 733 467111
WWW: http://www.grida.no
-------------------------------------------------------------
| -----Original Message-----
| From: Jeff Green [mailto:[EMAIL PROTECTED]]
| Sent: Wednesday, July 24, 2002 03:36
| To: CF-Talk
| Subject: Email regex
|
|
| Hi all,
|
| Im working on a regular expression for matching an email.
|
| So far I have this:
| [-A-Za-z0-9_\.]+[@][-A-Za-z0-9_]+([\.][-A-Za-z0-9]+)+
|
| used like this:
| <CFSET EmailPos =
| REFindNoCase("[-A-Za-z0-9_\.]+[@][-A-Za-z0-9_]+([\.][-A-Za-z0-
| 9]+)+",From,1,
| "True")>
|
| I swear ive used this before and it worked, although now only
| the .com or
| the .net is matching.
|
| Any ideas,
| Jeff
|
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists