Re: GetWords

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 60212
interpreted = N
texte = On 11/24/04 8:03 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? > > Here ya go: > > [text]ignorewords=no[/text] > > [text]mySentence=[/text] > > [listwords words=This is a sentence with 2.2 children. And this is another > one.&delimiters= ] > > [hideif [ignorewords]=yes] > [!]debug: [index]-[word]-
[/!] > [text]mySentence=[mySentence][word] [/text] > [math show=t]wordlength=[countchars][word][/countchars][/math] > [showif [url][getchars > start=[wordlength]&end=[wordlength]][word][/getchars][/url]=[url].[/url]] > [text]ignorewords=yes[/text] > [/showif] > [showif [url][getchars > start=[wordlength]&end=[wordlength]][word][/getchars][/url]=[url]![/url]] > [text]ignorewords=yes[/text] > [/showif] > [showif [url][getchars > start=[wordlength]&end=[wordlength]][word][/getchars][/url]=[url]?[/url]] > [text]ignorewords=yes[/text] > [/showif] > [/hideif] > [/listwords] > >
> The first sentence is:
> [mySentence] Works! Thanks Joe ------------------------------------------------------------- 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 8:03 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? > > Here ya go: > > [text]ignorewords=no[/text] > > [text]mySentence=[/text] > > [listwords words=This is a sentence with 2.2 children. And this is another > one.&delimiters= ] > > [hideif [ignorewords]=yes] > [!]debug: [index]-[word]-
[/!] > [text]mySentence=[mySentence][word] [/text] > [math show=t]wordlength=[countchars][word][/countchars][/math] > [showif [url][getchars > start=[wordlength]&end=[wordlength]][word][/getchars][/url]=[url].[/url]] > [text]ignorewords=yes[/text] > [/showif] > [showif [url][getchars > start=[wordlength]&end=[wordlength]][word][/getchars][/url]=[url]![/url]] > [text]ignorewords=yes[/text] > [/showif] > [showif [url][getchars > start=[wordlength]&end=[wordlength]][word][/getchars][/url]=[url]?[/url]] > [text]ignorewords=yes[/text] > [/showif] > [/hideif] > [/listwords] > >
> The first sentence is:
> [mySentence] Works! Thanks Joe ------------------------------------------------------------- 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:

problems with [getcookie] (1999) How to put the Trademark Symbol (%99) in Sendmail? (2003) Upgrading from version (1998) vs (1997) Smith Micro - no competition (2000) Re2: frames & carts (1997) New command suggestion (1997) (2000) Strange WebDNA server not running error (2006) [WebDNA] Just drop the Server version (2015) [WebDNA] Populate Bootstrap Modal with AJAX WebDNA (2015) WebCatalog can't find database (1997) Serial Number Question (1997) WebDNA equivalent for $REQUEST_URI (2004) 2 easy questions re: [showif] and [sendmail] (1997) shipcost (1997) RE: Can a database get stomped by simultaneous access? (1997) Text data with spaces in them... (1997) Search as error page (2002) Trouble with Netscape (1998)