First, you can just reference the variable queryString as the first parameter ot rereplacenocase (no #), and the value returned by rereplacenocase
<cfset queryString=REReplaceNoCase(queryString,"regex","newvalue")> Second, what do you want to replace these strings with? NULL (delete them?) Third do you want to do this just once, or for as many as it can find? <cfset queryString=REReplaceNoCase(queryString,"&Oby=[^&]*&Stype=(Asc|Desc)","","ALL")> This assumes that the Oby param and the Stype param are always stuck together like this, and are always preceded by some other cgi param (since you are looking for a & at the very beginning) Jerry Johnson >>> [EMAIL PROTECTED] 06/25/03 03:57PM >>> Here is a string I need to change. <cfset QueryString = "#REReplaceNoCase("#QueryString#","&Oby=OrderID&Stype=Asc","")#"> I need to replace "&Oby=OrderID&Stype=Asc" where "OrderID" could be anything so I need a wildcard in there. And same with with Stype which could be "Asc" or "Desc" so I also need a wildcard in there. So something like this <cfset QueryString = "#REReplaceNoCase("#QueryString#","&Oby=[*]type=[*]","")#"> TIA Ryan ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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