Re: GetWords

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 60182
interpreted = N
texte = On 11/24/04 1:45 PM, "Joe D'Andrea" wrote: > At 1:34 PM -0600 11/24/04, Clint Davis wrote: >> I need to extract the first sentence out of a block of text. The sentence >> will end with a period, exclamation point, or question mark followed by a >> space. May be a job for [grep]. Any ideas? > > > [listwords] when use with "delimiters" can redefine the meaning of what a word > is. > > > [listwords words=[your words go here]&delimiters=.!?] > [showif [index]=1] > The first sentence is: [word] > [/showif] > [/listwords] This also won't work if my sentence contains a period in the middle. Example: Do you have 2.2 children? ------------------------------------------------------------- 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: GetWords ( devaulw@onebox.com 2004)
  2. Re: GetWords ( Joe D'Andrea 2004)
  3. Re: GetWords ( Clint Davis 2004)
  4. Re: GetWords ( Joe D'Andrea 2004)
  5. Re: GetWords ( "WebDna @ Inkblot Media" 2004)
  6. Re: GetWords ( Clint Davis 2004)
  7. Re: GetWords ( Clint Davis 2004)
  8. Re: GetWords ( Joe D'Andrea 2004)
  9. GetWords ( Clint Davis 2004)
On 11/24/04 1:45 PM, "Joe D'Andrea" wrote: > At 1:34 PM -0600 11/24/04, Clint Davis wrote: >> I need to extract the first sentence out of a block of text. The sentence >> will end with a period, exclamation point, or question mark followed by a >> space. May be a job for [grep]. Any ideas? > > > [listwords] when use with "delimiters" can redefine the meaning of what a word > is. > > > [listwords words=[your words go here]&delimiters=.!?] > [showif [index]=1] > The first sentence is: [word] > [/showif] > [/listwords] This also won't work if my sentence contains a period in the middle. Example: Do you have 2.2 children? ------------------------------------------------------------- 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/ Clint Davis

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:

Was code to phantom spacing -- now BBEdit [!][/!] (2001) listwords and delimiters.. showing blank word? (2004) [WebDNA] Ubuntu 14.04 LTS / Apache 2.4 (2014) emailer (1997) Secure server question (1997) Searching multiple Databases (1997) WebCat2 - [SendNews] (1997) WebCat2b12 CGI Mac -- Problems propagating the cart through frames...still (1997) Erotic Sites (1997) International Orders (1998) Late on Friday.... brain fried (2002) Signal Raised Error (1997) WebCat2b13MacPlugIn - More limits on [include] (1997) Bug Report, maybe (1997) Help name our technology! (1997) Online reference (1997) Separate SSL Server (1997) Still Stumped on ShowNext...HELP! (1997) Large databases in WebCat (1997) Requiring that certain fields be completed (1997)