Hi Ryan,
Try this:
<cfset t = "Lindsay Evans <[EMAIL PROTECTED]>">
<cfset e = REFindNoCase("[^<>[EMAIL PROTECTED]<>\s]*", t, 1, "true")>
<cfoutput>#Mid(t, e["pos"][1], e["len"][1])#</cfoutput>
Add any characters that shouldn't be in an email address after the '\s'
bits, if you need to. (yeah, I was lazy & just checked for anything that
isn't angle brackets or a space :)
I'm sure one of the numerous email RFCs can tell you what chars are allowed
in an address.
[EMAIL PROTECTED] wrote:
> What happens when my friend at a *.net address needs to be processed?
>
> I would think that the expression would need to "get everything
> between the < and the >", but I'm not sure how to write it...
>
> I should have said.. this is for cleaning out a database where the
> email addresses have been stored with the name in the same field, so
> expect .net, .org, entries as well.
>
> thanks!
--
Lindsay Evans.
Developer,
Red Square Productions.
[p] 8596.4000
[f] 8596.4001
[w] www.redsquare.com.au
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004