Here's some ideas off the top of my head: turn it into an XML file. Put a parent tag around all of your content, and then parse every instance of "~" and replace it with an appropriate set of child tags. Then you can parse it with an XML parser. I know there's some potential gotchas, but it's an idea.
Alternately, you could parse the whole thing as a list, with "~" as your delimiter. Another possibility: parsing with CF may have some performance issues, since it requires you to load the entire file at once. However, ADO allows you to stream files in - can't remember the exact object you'd use. ----- Original Message ----- From: "Lee Fuller" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, November 09, 2001 10:38 AM Subject: RE: getting xxx from <xxx> (New Question) > Ok.. Let's try this.. > > Getting "xxx", or whatever, from: > > Blah balha wijebhier efowein b <xxx> aiwig939j jblha lk jblah, blah > <xxxx> blae9 ahb90gaonow blah blah blah. > > .. and when this occurs in a 20+MB file, sometimes more than 4000 > times? > > ;) > > Lee > > > -----Original Message----- > > From: raphael [mailto:[EMAIL PROTECTED]] > > Sent: Friday, November 09, 2001 8:20 AM > > To: CF-Talk > > Subject: Re: getting xxx from <xxx> > > > > > > Worked like a charm... > > > > I have something really cool to show the list in 2 weeks..... > > > > -Raph > > ----- Original Message ----- > > From: <[EMAIL PROTECTED]> > > To: "CF-Talk" <[EMAIL PROTECTED]> > > Sent: Friday, November 09, 2001 11:02 AM > > Subject: Re: getting xxx from <xxx> > > > > > > > <cfset testChar = "<Here's the String>"> > > > > > > <cfset newChar = Mid(testChar, 2, #len(testChar)#-2)> > > > > > > Michael Corrigan > > > Programmer > > > Endora Digital Solutions > > > www.endoradigital.com > > > 630/942-5211 x-134 > > > ----- Original Message ----- > > > From: raphael > > > To: CF-Talk > > > Sent: Friday, November 09, 2001 9:37 AM > > > Subject: getting xxx from <xxx> > > > > > > > > > How would this be accomplished? > > > > > > getting xxx from <xxx> > > > > > > I was going to do a find on both "<" and ">" and get the > > middle but > > > I'm > > > thinking of removing anything else then trimming left(1) and > > > right(1) > > > > > > Raph. > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

