This is returning nothing now.  I'm trying to understand what's going on
so I can tweak some myself, but I just keep confusing myself.  What does
the "\1" mean?  And you're saying the space class will handle end of
lines right?

John 

-----Original Message-----
From: Jerry Johnson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 21, 2004 2:27 PM
To: CF-Talk
Subject: RE: RegEx help

Both!

You should probably replace the second and third "spaces" with the
generic space "class". This will allow tabs, returns, and spaces.
[[:space:]]

The last character issue I didn't handle at all.

Maybe something along these lines (completely not tested)

<cfset fieldName="FirstName">
<cfset
fieldVal=rereplaceNoCase(content,".*#fieldName#:[[:space:]]+([^[[:space:
]]]+)($|[[:space:]]+.*)","\1")>

This should check for one or more space characters or the end of the
string.

Jerry Johnson

>>> [EMAIL PROTECTED] 10/21/04 02:15PM >>>
Maybe that's what it is.  I think the case I'm talking about has a
linebreak after the data.  Which space (chr(32)) would I replace with
the space class?  The one after the ^ or the one before the +.

John 





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF 
community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=34

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