Rey,

Glad I could help... I am sure there is a better way to make the RegExp,
using the shorthand notation, but I am not an expert on those:

[EMAIL PROTECTED] 

Samd as...

[EMAIL PROTECTED]

Where \w is word characters and \d is digit characters... But can never
remember what exactly whey stand for.

-ben
.......................
Ben Nadel 
www.bennadel.com

-----Original Message-----
From: Rey Bango [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 19, 2006 12:00 PM
To: CF-Talk
Subject: Re: Extract email(s) from non-delivered message

That did the trick!! Awesome man!

Rey...

Ben Nadel wrote:
> Rey,
> 
> If you are unsure of the email type... You might want to try the reg exp:
> 
> If you want to be variable for type, you can try this:
> 
> [EMAIL PROTECTED]  for the RegExp.
> 
> Matches any string containg the following characters a-z A-Z 0-9 - . _  
> AND has at least one "@"
> 
> Might match some crazy strings through like "[EMAIL PROTECTED]@ben"
> 
> But assuming its valid email source... Should be good.
> 
> .......................
> Ben Nadel
> www.bennadel.com
> 
> -----Original Message-----
> From: Rey Bango [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 19, 2006 11:39 AM
> To: CF-Talk
> Subject: Re: Extract email(s) from non-delivered message
> 
> You're absolutely right Claude. What I was planning on doing is 
> tweaking the script as I found emails formatted differently and 
> eventually have a nice library of formats setup.
> 
> I'll look at CF_REExtract to see if it can help as well.
> 
> Thanks,
> 
> Rey./..
> 
> Claude Schneegans wrote:
> 
>> >>I need to extract emails from non-delivered messages.
>>
>>The problem is that there are not two servers that will return 
>>messages with the same syntax.
>>If you only send messages to Yahoo, fine, but what if you send 
>>messages to other types of servers?
>>
>>Anyway, if you need to parse something, your best solution will be 
>>CF_REExtract.
>>See : 
>>http://www.contentbox.com/claude/customtags/REextract/testREextract.cf
>>m
>>
> 
> 
> 
> 
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238120
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to