I think I know what is happening - the patter is going to the end of the string, not stopping at the ,'
2009/4/8 AJ Mercer <ajmer...@gmail.com> > so final result will look like > 'test, with commas','code','more test' > > > 2009/4/8 Steve Onnis <st...@cfcentral.com.au> > >> what is the intended result meant to be? >> >> ------------------------------ >> *From:* cfaussie@googlegroups.com [mailto:cfaus...@googlegroups.com] *On >> Behalf Of *AJ Mercer >> *Sent:* Wednesday, 8 April 2009 3:07 PM >> *To:* cfaussie@googlegroups.com >> *Subject:* [cfaussie] Re: RE Replace >> >> Thanks Steve, >> >> I think I may be stumped on the back reference though?? >> >> <cfset pattern = "',(.*),'" /> >> <cfset uploadData = ReReplaceNoCase(uploadData, pattern, "','\1','" , >> "all") /> >> >> gives me >> 'test, with commas','code,'more test' >> >> not getting the close quote after code >> >> >> >> 2009/4/8 Steve Onnis <st...@cfcentral.com.au> >> >>> its a slash >>> >>> \1 >>> >>> just make sure you replce it with the right backreference though >>> >>> ------------------------------ >>> *From:* cfaussie@googlegroups.com [mailto:cfaus...@googlegroups.com] *On >>> Behalf Of *AJ Mercer >>> *Sent:* Wednesday, 8 April 2009 1:08 PM >>> *To:* cfaussie@googlegroups.com >>> *Subject:* [cfaussie] RE Replace >>> >>> Is it possible using REReplaceNoCase() to use the found test in the >>> substring? >>> >>> I have >>> 'test, with commas',code,'more test' >>> >>> Where code can be any text >>> >>> I wont to search for >>> ',<RE expresion>,' >>> and replace with >>> ','<code>',' >>> >>> so final result will look like >>> 'test, with commas','code','more test' >>> >>> >>> I think something can be using $1, but I could be thinking of something >>> else >>> >>> >>> >>> -- >>> AJ Mercer >>> Web Log: http://webonix.net >>> >>> >> >> >> -- >> AJ Mercer >> Web Log: http://webonix.net >> >> >> > > > -- > AJ Mercer > Web Log: http://webonix.net > -- AJ Mercer Web Log: http://webonix.net --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---