This might be more of what you are looking for. It captures special characters as well and should fit more in line to what you want.
<Cfset str = "~{Test Infor$%mation2$</a></li>~{Test Information</a></li>~{Test Information4</a></li>~{Test Information</a></li>" /> <cfdump var="#str.replaceAll( "(~\{.*?)</a></li>", "$1}~</a></li>" )#" /> 2011/6/14 Patrick Santora <patwe...@gmail.com> > If you'd like you can use the underlying java implementation of replaceAll. > > <Cfset str = "~{Test Information2</a></li>~{Test Information</a></li>~{Test > Information4</a></li>~{Test Information</a></li>" /> > <cfdump var="#str.replaceAll( "([a-zA-Z0-9])</a></li>", "$1}~</a></li>" )#" > /> > > Should show: ~{Test Information2}~</a></li>~{Test > Information}~</a></li>~{Test Information4}~</a></li>~{Test > Information}~</a></li> > > -Pat > > > On Tue, Jun 14, 2011 at 7:49 AM, Patrick Kerley <kerl...@yahoo.com> wrote: > >> >> I have a regular expression issue. >> >> I have information that says: >> >> ~{Test Information</a></li> >> >> >> That in a series of processing should look like ~{Test >> Information}~</a></li> >> >> Any idea in a rereplace how I can replace anything that is ~{*</a></li> >> with ~{*}~</a></li> >> >> Thanks >> Pat >> >> ------------- >> Patrick Kerley >> kerl...@yahoo.com >> ------------ >> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345265 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm