Re: grep - regular expression help

This WebDNA talk-list message is from

2007


It keeps the original formatting.
numero = 69302
interpreted = N
texte = Olin May be a bit too tough for grep. Try using a combination of list words and [IF] You may have to play around with the delimiter and [URL] to get it to display the URL in its entirety. I got this to work: [TEXT]fixthis=For a full description of why adopting a low-meat diet is the single most important action you can take to protect Hawai'i and the planet, see: http://www.huffingtonpost.com/kathy-freston/ vegetarian-is-the-new-pri_b_39014.html. For tips on how to do it, see: http://www.alternet.org/environment/48633[/TEXT] [Listwords words=[fixthis]&delimiters= ][If ("[word]"^"http://")] [Then][word] [/Then][Else][word] [/Else][/If][/ Listwords] Make sure that any line breaks in the email are repaired. Check it out here: http://dev.idfk.com.au/url/ On 27 Sep 2007, at 6:40 AM, Olin Lagon wrote: > Aloha all, > > Does anyone know of a way to use grep to replace a block of text > with URLS > such as > > For a full description of why adopting a low-meat diet is the > single most > important action you can take to protect Hawai'i and the planet, see: > http://www.huffingtonpost.com/kathy-freston/vegetarian-is-the-new- > pri_b_3901 > 4.html. For tips on how to do it, see: > http://www.alternet.org/environment/48633 > > With > > For a full description of why adopting a low-meat diet is the > single most > important action you can take to protect Hawai'i and the planet, > see: href="http://www.huffingtonpost.com/kathy-freston/vegetarian-is-the- > new-pri_ > b_39014.html">http://www.huffingtonpost.com/kathy-freston/ > vegetarian-is-the- > new-pri_b_39014.html. For tips on how to do it, see: href="http://www.alternet.org/environment/48633">http:// > www.alternet.org/env > ironment/48633 > > Thanks! Olin > > > ------------------------------------------------------------- > 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 digest@talk.smithmicro.com> > 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: grep - regular expression help ( "Olin Lagon" 2007)
  2. Re: grep - regular expression help ( Stuart Tremain 2007)
  3. grep - regular expression help ( "Olin Lagon" 2007)
Olin May be a bit too tough for grep. Try using a combination of list words and [if] You may have to play around with the delimiter and [url] to get it to display the URL in its entirety. I got this to work: [text]fixthis=For a full description of why adopting a low-meat diet is the single most important action you can take to protect Hawai'i and the planet, see: http://www.huffingtonpost.com/kathy-freston/ vegetarian-is-the-new-pri_b_39014.html. For tips on how to do it, see: http://www.alternet.org/environment/48633[/TEXT] [Listwords words=[fixthis]&delimiters= ][If ("[word]"^"http://")] [Then][word] [/Then][Else][word] [/Else][/If][/ Listwords] Make sure that any line breaks in the email are repaired. Check it out here: http://dev.idfk.com.au/url/ On 27 Sep 2007, at 6:40 AM, Olin Lagon wrote: > Aloha all, > > Does anyone know of a way to use grep to replace a block of text > with URLS > such as > > For a full description of why adopting a low-meat diet is the > single most > important action you can take to protect Hawai'i and the planet, see: > http://www.huffingtonpost.com/kathy-freston/vegetarian-is-the-new- > pri_b_3901 > 4.html. For tips on how to do it, see: > http://www.alternet.org/environment/48633 > > With > > For a full description of why adopting a low-meat diet is the > single most > important action you can take to protect Hawai'i and the planet, > see: href="http://www.huffingtonpost.com/kathy-freston/vegetarian-is-the- > new-pri_ > b_39014.html">http://www.huffingtonpost.com/kathy-freston/ > vegetarian-is-the- > new-pri_b_39014.html. For tips on how to do it, see: href="http://www.alternet.org/environment/48633">http:// > www.alternet.org/env > ironment/48633 > > Thanks! Olin > > > ------------------------------------------------------------- > 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 digest@talk.smithmicro.com> > 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/ Stuart Tremain

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:

New Command prefs ... (1997) using showpage and showcart commands (1996) Reversed words (1997) Using Plug-In while running 1.6.1 (1997) [lineitems] (2000) Help formatting search results w/ table (1997) Keep away (1997) [WebDNA] Combining searches with blank and zero values? (2011) Conditional Redirect (2004) Help with nested search (1998) Help! WebCat2 bug (1997) WebCat2: Items xx to xx shown, etc. (1997) Multiple catalog databases and showcart (1997) Separate SSL Server (1997) autosensing lanague selection (1997) Incorrect Value Display (2000) [WebDNA] ICECAT crawler (2018) and more [shipcost].... (2001) Separate SSL Server (1997) Flag checking (2000)