Re: grep - regular expression help

This WebDNA talk-list message is from

2007


It keeps the original formatting.
numero = 69303
interpreted = N
texte = Thanks!!! -----Original Message----- From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of Stuart Tremain Sent: Wednesday, September 26, 2007 11:53 AM To: WebDNA Talk Subject: Re: grep - regular expression help 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/ ------------------------------------------------------------- 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)
Thanks!!! -----Original Message----- From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of Stuart Tremain Sent: Wednesday, September 26, 2007 11:53 AM To: WebDNA Talk Subject: Re: grep - regular expression help 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/ ------------------------------------------------------------- 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/ "Olin Lagon"

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:

WebCat2 several catalogs? (1997) Setting up WebCatalog with Retail Pro data (1996) Document Contains No Data! (1997) Alpha Sort - ignore certain characters (2003) Country & Ship-to address & other fields ? (1997) creator code (1997) More NT encyption!! (1999) Searchable WebCat (etc.) Docs ? (1997) Execute Applescript (1997) customizing the color of user's pages (1997) $Replace with [founditems] (1997) dynamic list of form variables (2003) Running _every_ page through WebCat-error.html (1997) Potential Conflicts? (1997) Nested tags count question (1997) Lots of bounce errors (2007) Trigger Output (2003) Snake Bites (1997) AAgghh!! Help, please. SSL strikes again. (1997) Showif, Hideif reverse logic ? (1997)