ASsuming that OrderID will all be numbers, and you'll either have asc or
desc as the stype and nothing else, you could do

&oby=[[:digit:]]*&stype=(asc|desc)

However, this will only work if oby and stype are in that order and not the
first pairs in the query string.

If you need more help than this, may I suggest we move it over to the
CF-Regex list:
http://www.houseoffusion.com/cf_lists/index.cfm?method=threads&forumid=21
where a full staff of trained professionals sits waiting to answer questions
such as these.


--  Ben Doom
    Programmer & General Lackey
    Moonbow Software, Inc

: -----Original Message-----
: From: Ryan Roskilly [mailto:[EMAIL PROTECTED]
: Sent: Wednesday, June 25, 2003 3:57 PM
: To: CF-Talk
: Subject: quick regex help
:
:
: 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

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to