Nice.  I like that.  I hadn't thought of using a null character in a piped
chooser (or whatever you want to call that.  I'm sure it has a name :-)



  --Ben Doom
    Programmer & General Lackey
    Moonbow Software

: -----Original Message-----
: From: Jerry Johnson [mailto:[EMAIL PROTECTED]]
: Sent: Monday, December 23, 2002 2:29 PM
: To: CF-Talk
: Subject: Re: Regular expression question
:
:
: if you are too lazy to try Ray's suggestion (as I often am),
: something like this might get you there.
:
: <cfset
: emailAddress=REReplaceNoCase(BlockOfText,"(|.*[^'\._a-z0-9-]+)(['\
: ._a-z0-9-]+@[a-z0-9-]+(\.[a-z0-9-]+)*\.(([a-z]{2,3})|(aero|coop|in
fo|museum|name))).*","\2")>
:
: (Of course, this assumes there was an email to find, otherwise
: emailAddress=blockoftext)
: FWIW
: Jerry
:
: >>> [EMAIL PROTECTED] 12/23/02 11:22AM >>>
: 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
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Reply via email to