Grep help needed

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 58982
interpreted = N
texte = Howdy list, I need some grep (I think) to strip the cart values out of a url; from: http://www.someurl.com?cart=2323423412 to: http://www.someurl.com or also could be: from: http://www.someurl.com?sku=21&cart=23234234 to: http://www.someurl.com?sku=21 I don't think [middle] is an option here, since the startafter will vary if there's an &sku=## in the link and I don't think [convertwords] will work either. I tried it in combination with a grep to strip the numbers, and it would work but it's stripping the number from the &sku= part which is no good. Digging through the archives now as I'm sure this has come up before, but if anybody has any ideas/suggestions they would be appreciated! Gary ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Grep help needed ( Gary Krockover 2004)
  2. Re: Grep help needed ( Bob Minor 2004)
  3. Re: Grep help needed ( William DeVaul 2004)
  4. Grep help needed ( Gary Krockover 2004)
Howdy list, I need some grep (I think) to strip the cart values out of a url; from: http://www.someurl.com?cart=2323423412 to: http://www.someurl.com or also could be: from: http://www.someurl.com?sku=21&cart=23234234 to: http://www.someurl.com?sku=21 I don't think [middle] is an option here, since the startafter will vary if there's an &sku=## in the link and I don't think [convertwords] will work either. I tried it in combination with a grep to strip the numbers, and it would work but it's stripping the number from the &sku= part which is no good. Digging through the archives now as I'm sure this has come up before, but if anybody has any ideas/suggestions they would be appreciated! Gary ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Gary Krockover

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Separate SSL Server (1997) Sendmail doesn't (was Queertrons?) (1997) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) Tags not being Interpreted-Resending (1999) About to give up (1998) New Site WebCat (1997) [format xs] freeze (1997) bannerads example idiot (1997) Bug? (1997) WebDNA 5.1 and Mac OS X Server v10.3 - Working ??? (2003) Sorting by date (1997) CERT Advisory on malicious scripts (2000) Never ending problem.... (2000) One per customer (2000) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) displaying New products (using [date]) (1997) Calculating Age from DB fields (2003) Virtual Domains (1998) Num Sort Descending (OT) (2004) is [math] busted somehow in 3.05b10? (1999)