Forum Discussion

dimka___104021's avatar
dimka___104021
Icon for Nimbostratus rankNimbostratus
Sep 06, 2007

strip off certain part of URI

Hello,

 

 

How can i strip off "searchtype=simple" from HTTP::query?

 

It could be in query in different places - beginning, end, everywhere.

 

 

tia,
  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    It sounds like all you'd need would be either a regsub or string map type operator that looked for the string in question and replaced it with nothing.

    Something like:

    
    regsub {searchtype=simple} [HTTP::uri] "" newURI
    HTTP::uri $newURI

    HTH,

    Colin