Re: Grep help needed
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 58984
interpreted = N
texte = [grep search=cart\=.[0-9]*&replace=] http://www.someurl.com?sku=21&cart=23234234[/grep]This works for me, but you would end up with and & on the end which you could grep out again if you wanted.On Aug 4, 2004, at 7:15 PM, Gary Krockover wrote:> 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:
[grep search=cart\=.[0-9]*&replace=] http://www.someurl.com?sku=21&cart=23234234[/grep]This works for me, but you would end up with and & on the end which you could grep out again if you wanted.On Aug 4, 2004, at 7:15 PM, Gary Krockover wrote:> 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/
Bob Minor
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:
all records returned. (1997)
Separate SSL Server (1997)
Converting order file to database (1998)
Some Advise needed (1997)
WebCat b15 Mac plug-in (1997)
Associative lookup style? + bit more (1997)
Validation (2000)
RE: Re:Signal Raised (1997)
New Plug-in and Type 11 errors (1997)
WebCatalog for Postcards ? (1997)
quantity minimum problem (1997)
Help! WebCat2 bug (1997)
Um. silly question perhaps...but I don't know, so I'm askin'.. (2001)
Emailer setup (1997)
WebCatalog f2 Installation (1997)
Dates - Search and Sorting (1999)
Two submit buttons ? (1997)
Sendmail truncation in Eudora Clients (1998)
Ampersand (1997)
Webstar 1.3.1 PPC (1997)