Add the 3rd and 4th optional args - the 3rd arg, where to start, should
be set to 1, and the 4th, is a boolean that specifies if you want the
matched expressions returned. You will get a struct of two arrays, pos
and len, where pos[x] and len[x] is the position and length of the Xth
matched subexpression.

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc

Email    : [EMAIL PROTECTED]
WWW      : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Lofback, Chris [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, December 23, 2002 10:22 AM
> To: CF-Talk
> Subject: Regular expression question
> 
> 
> Is there a way to return just the string that a REFind 
> matches?  I'm trying to pull an email address out of a block 
> of text.  I can find the beginning using this:
> 
> REFindNoCase("['_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-
> 9-]+)*\.(([a-z
> ]{2,3})|(aero|coop|info|museum|name))",BlockOfText)
> 
> But I don't see how to match the end.  It seems like I need 
> to return the "\1" back reference, but how?
> 
> Thanks,
> Chris Lofback
> Sr. Web Developer
> 
> TRX Integration
> 28051 US 19 N., Ste. C
> Clearwater, FL  33761
> www.trxi.com
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Reply via email to