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:
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:
All choices on IE different than Netscape (1997)
Javascripts (1998)
[WebDNA] To be or not to be friendly (URLs) (2011)
Thank you.. (2000)
WebCatalog2 Feature Feedback (1996)
Only charge card when product shipped ? (1997)
Sku numbers (1997)
RE: formula.db, adding option prices (1997)
[math] with first letter in field? (1997)
Make sure I understand this??? (1997)
Summary search -- speed (1997)
More on the email templates (1997)
WebCatalog2 Feature Feedback (1996)
Date search - yes or no (1997)
Problem 2: Prefs file... (1997)
limiting found items (2001)
Error:Too many nested [xxx] contexts (1997)
Multi Colonns (1998)
Tech question about web dna actions (1998)
Help formatting search results w/ table (1997)