mytextfile = rereplacenocase(mytextfile,"[#chr(13)##chr(10)#]{1,2}([01])","|\1","ALL"); mytextfile = rereplacenocase(mytextfile,"[#chr(13)##chr(10)#]{1,2}("")","*\1","ALL");
hth ike ------ Original Message ------ From: David DiPietro <[EMAIL PROTECTED]> To: CF-Talk <[EMAIL PROTECTED]> Sent: Sep 04, 2003 12:50 PM Subject: Re: Simple RegEx question >Hi, > >I'm using cffile to read a .txt file. >I need to Replace the Carriage Return Line feed with a '|' when the new line >begins with a '0' or a '1' >and a '*' when the new line begins with a '"'. > >I am just too unfamiliar with RegEx to do it. > >Any Ideas? > >David DiPietro >OSU College of Medicine > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 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