Re: help with grep

This WebDNA talk-list message is from

2008


It keeps the original formatting.
numero = 69858
interpreted = N
texte = er try this: [grep search=%26&replace=?][result][/grep] where %26 equals the url encoded value of & Robert Minor Director of Internet Services ------------------------------------------------------------ Cybermill Communications http://www.cybermill.com http://www.merchantmaker.com Providing Ecommerce and interactive website development and hosting services on Macintosh, Windows NT, *nix, and AS/400. Complete ddos proof hosting solutions and network services. On Feb 25, 2008, at 17:21 25, Marc Thompson wrote: > OOPPS, the second 2 that don't work should be: > [Text]Result=[Grep search=\&&replace=?][Result][/Grep][/Text] > [Text]Result=[Grep search=(\&)&replace=?][Result][/Grep][/Text] > > Marc Thompson wrote: > >> I've run into a dilema and can't seem to get grep to work on a URL >> string. What I need to do is replace a single instance of "&" with >> a "?", but I cannot seem to get the correct syntax? >> [Text]Result=http://www.domain.com/menu.4321&var1=xxx[/Text] >> The following don't work? >> [Text]Result=[Grep search=&&replace=?][Result][/Grep][/Text] >> [Text]Result=[Grep search=\&=&replace=?][Result][/Grep][/Text] >> [Text]Result=[Grep search=(\&)=&replace=?][Result][/Grep][/Text] >> Any ideas? > > -- > ------------------------------------------- > Marc Thompson > Software Engineer > Office of Information Technology > University of Utah > 801.585.9264 > marc.thompson@utah.edu > ------------------------------------------- > > ------------------------------------------------------------- > 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:

    
  1. Re: help with grep ( Bob Minor 2008)
  2. Re: help with grep ( Donovan Brooke 2008)
  3. Re: help with grep ( Marc Thompson 2008)
  4. help with grep ( Marc Thompson 2008)
  5. Re: Help with Grep exchange ( devaulw@onebox.com 2005)
  6. Help with Grep exchange ( "Palle B. Nielsen (PowerPalle)" 2005)
er try this: [grep search=%26&replace=?][result][/grep] where %26 equals the url encoded value of & Robert Minor Director of Internet Services ------------------------------------------------------------ Cybermill Communications http://www.cybermill.com http://www.merchantmaker.com Providing Ecommerce and interactive website development and hosting services on Macintosh, Windows NT, *nix, and AS/400. Complete ddos proof hosting solutions and network services. On Feb 25, 2008, at 17:21 25, Marc Thompson wrote: > OOPPS, the second 2 that don't work should be: > [text]Result=[Grep search=\&&replace=?][Result][/Grep][/Text] > [text]Result=[Grep search=(\&)&replace=?][Result][/Grep][/Text] > > Marc Thompson wrote: > >> I've run into a dilema and can't seem to get grep to work on a URL >> string. What I need to do is replace a single instance of "&" with >> a "?", but I cannot seem to get the correct syntax? >> [text]Result=http://www.domain.com/menu.4321&var1=xxx[/Text] >> The following don't work? >> [text]Result=[Grep search=&&replace=?][Result][/Grep][/Text] >> [text]Result=[Grep search=\&=&replace=?][Result][/Grep][/Text] >> [text]Result=[Grep search=(\&)=&replace=?][Result][/Grep][/Text] >> Any ideas? > > -- > ------------------------------------------- > Marc Thompson > Software Engineer > Office of Information Technology > University of Utah > 801.585.9264 > marc.thompson@utah.edu > ------------------------------------------- > > ------------------------------------------------------------- > 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:

Date problems-more (1997) Searching the same field with 2 form variables. (2000) Multiple catalog databases and showcart (1997) Re:Contest (1999) WC2f3 (1997) 2.0Beta Command Ref (can't find this instruction) (1997) setlineiems and UnitShip Cost (2000) Date search bug (1998) MacFinder -- a new WebDNA web site (1998) Credit Card Checking?? (1998) Emailer choke (1997) any WEBCAT gurus who are also PERL proficient? (1999) Multiple catalog databases and showcart (1997) Searchable WebCat (etc.) Docs ? (1997) Generating Report Totals (1997) Reload of the shoppingcart.tmpl page (1999) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) multi-paragraph fields (1997) WebCatalog for guestbook ? (1997) Alias Problem (2002)