Rey,

Glad I could help... Reg ex is as follows:

(?<=\()([EMAIL PROTECTED])(?=\))

(?<=\()
This is a zero length match possitive look behing for the string "("...
Meaning, at this point in the regexp, the previous character must be a "(".
This "(" is not part of the matchint string though.

([EMAIL PROTECTED])
This matches any non-line-break containin string that has a "@" in it. To be
more appropriate, the ".+" might need to be replaced with [^\)]+ which would
match any character that is not ")"

(?=\))
This is a zero length match possitive look ahead for the string ")"...
Meaning, at this point in the reg exp, the next character must be a ")".
This ")" is not part of the matchint string though.

Let me know if you need any more explaination.


This might be more accurate:

(?<=\()([EMAIL PROTECTED]@[^\)]+)(?=\))

.......................
Ben Nadel 
Web Developer
Nylon Technology
350 7th Ave.
Suite 1005
New York, NY 10001
212.691.1134 x 14
212.691.3477 fax
www.nylontechnology.com

Sanders: Lightspeed too slow?
Helmet: Yes we'll have to go right to ludacris speed.
-----Original Message-----
From: Rey Bango [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 19, 2006 11:29 AM
To: CF-Talk
Subject: Re: Extract email(s) from non-delivered message

Damn Ben, I could just hug ya man! Worked like a charm. Would you mind
breaking the regex down for me so I can tweak it if necessary to accomodate
other messages?

I'm keeping your email on file. Email me your rates. I might need more help
in the future.

Rey...


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238112
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