I am doing the replacements in TextPad on a text file that I am parsing. Is there not a regex that would work without running it through CF?
Larry Juncker Senior Cold fusion Developer Heartland Communications Group, Inc. [EMAIL PROTECTED] (515) 574-2122 CONFIDENTIALITY NOTICE The information contained in this e-mail is intended only for the use of the individual or entity to which it is addressed. This e-mail may contain information that is privileged, confidential and/or personal. If the reader of this message is not the intended recipient (or the employee or agent responsible to deliver it to the intended recipient), you are hereby notified that any dissemination, distribution, or copying of this communication is prohibited. If you have received this communication in error, please notify us at the e-mail listed above. -----Original Message----- From: Marlon Moyer [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 1:13 PM To: CF-Talk Subject: Re: OT: Regex question This might work: REreplace(test, "~([A-Z]{2})[ ]", "~\1~ ","ALL") Marlon Larry Juncker wrote: >Sorry for the OT, but I can not get any answers on CF-Regex.. > >I have the following code in a text file: > >~TX which is tildeSTATECODEspace > >I want to do a regex in my text editor that will find every occurrence of >every state >and change it to: >~TX~ or ~IA~ OR ~NC~ > >I thought that this would do it, but it does not like it: > >[~[A-Z][:space:]$] for my find row > >I am using text pad if that makes a difference for the answer. > >Otherwise I guess I can keep highlighting each state manually. > >Thanks in advance > > >Larry Juncker >Senior Cold fusion Developer >Heartland Communications Group, Inc. >[EMAIL PROTECTED] >(515) 574-2122 > >CONFIDENTIALITY NOTICE >The information contained in this e-mail is intended only for the use of the >individual or entity to which it is addressed. This e-mail may contain >information that is privileged, confidential and/or personal. If the reader >of this message is not the intended recipient (or the employee or agent >responsible to deliver it to the intended recipient), you are hereby >notified that any dissemination, distribution, or copying of this >communication is prohibited. > >If you have received this communication in error, please notify us at the >e-mail listed above. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 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 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

