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:

OK, here goes... (1997) cybercash (2002) [WebDNA] File permissions on Windows? (2010) String manipulation in Webcatalog (2001) Date/Time format problems (1997) Re:no template caching (1997) Setting up Webmerchant.... (1999) encrypted database (2004) WebCatalog for Postcards ? (1997) did I miss anything (1997) Help name our technology! (1997) OT - Extract frames from GIF (2004) For those of you not on the WebCatalog Beta... (1997) [WebDNA] PCI Vulnerability testing (2009) My Eyes doth deceive me (2002) Graphical display of sales volume (2003) A quickie question (1997) Resetting a Formvariable (2000) case number with spaces. (2000) Generating unique SKU from [cart] (1997)