Are you sure you've got the fieldname correct? Capitilization counts. If you want to do a case-insensitive search, use rereplacenocase() instead.
--Ben Burns, John D wrote: > Hmmm, I think I see what you're trying to do there, but it doesn't work. > The files aren't very large at all and I am using CFMX. I'm not very > good with Regexs so I'm not sure what's wrong, but it seems to not be > stripping anything out. > > John > > -----Original Message----- > From: Jerry Johnson [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 21, 2004 12:41 PM > To: CF-Talk > Subject: Re: RegEx help > > What version of Cold Fusion? How long is the longest possible string you > are searching through? > > If newer than cf 5, or cf 5 and the max string is less than 20KB, > > <cfset fieldName="FirstName"> > <cfset fieldVal=rereplace(content,".*#fieldName#: +([^ ]+) +.*","\1")> > > (I think) > > Jerry Johnson > > >>>>[EMAIL PROTECTED] 10/21/04 12:26PM >>> > > I'm trying to parse through some information in a text document where > there is information like this: > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=35 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182229 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

