Re: Grep help needed
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 58983
interpreted = N
texte = Try this:[grep search=cart=[0-9]*&replace=][/grep]> 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/-------------------------------------------------------------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:
Try this:[grep search=cart=[0-9]*&replace=][/grep]> 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/-------------------------------------------------------------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/
William DeVaul
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:
upgrade? (1997)
Searching (second post) (1999)
Great product and great job ! (1997)
form data submission gets truncated (1997)
docs for WebCatalog2 (1997)
Running _every_ page through WebCat-error.html (1997)
Dynamic PDFs? (2004)
Database Updates (1997)
Re:Problem (1997)
What does this error mean? (2000)
Robert Minor duplicate mail (1997)
Size limit for tmpl editor ? (1997)
Nested search (1997)
Autoreturn Submit? (1997)
Emailer in the Process Viewer, under MacOS X (2002)
form crasehes server (1997)
Encrypting WebDNA Templates and eligible files (1999)
webcat/webmerchant docs (1997)
(1997)
Quit revisited (1997)