Howdi,

<cfset string="Ryan Sabir <[EMAIL PROTECTED]>">

<cfset ret=refindnocase("[^<]*<([^>]*)>", string, 1, true)>
<cfif arraylen(ret.pos) gt 1>
        <cfset address=mid(string, ret.pos[2], ret.len[2])>
<cfelse>
        <cfset address="not found">
</cfif>

<cfoutput>#address#</cfoutput>

cheers.

+----------------------------------------------------+
| VeriPay mPOS - Anywhere, Anytime                   |
| Puts money in your bank while you're on the road   |
| Secure Credit Card Transactions via SMS messaging  |
| From Xilo Online                www.xilo.com/mpos  |
+----------------------------------------------------+

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of 
> Ryan Sabir
> Sent: Friday, 30 April 2004 2:40 PM
> To: CFAussie Mailing List
> Subject: [cfaussie] Reg expression help
> 
> 
> Can someone give me the regular expression that will grab just the
> email address out of a string that looks like this:
> 
> Ryan Sabir <[EMAIL PROTECTED]>
> 
> I want to end up with
> 
> [EMAIL PROTECTED]
> 
> Should I be using REFind or REReplace for this?
> 
> i had a few goes, but didn't get it working.... :(
> 
> thanks...
> 
> -----------------------
> Ryan Sabir
> Newgency Pty Ltd
> 2a Broughton St
> Paddington 2021
> Sydney, Australia
> Ph (02) 9331 2133
> Fax (02) 9331 5199
> Mobile: 0411 512 454
> http://www.newgency.com/index.cfm?referer=rysig 
> 
> 
> ---
> 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

---
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

Reply via email to