Re: Numbers from Sentence

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 47999
interpreted = N
texte = Whaaa!? You mean my super-advanced [GetChars] solution wasn't what you were looking for! ;) Beer time. Later, y'all. [grep search=2&replace=34]Hello waitress, I would like 2 beers please.[/grep]-Dan ------------------------------------------------------------ http://www.StrongGraphicDesign.com (208) 319-0137 | Toll-free p/f 877-561-1656 ------------------------------------------------------------ On Fri, 21 Feb 2003 15:47:37 -0800 World Wide Art wrote: >>on 2/21/03 5:03 PM, World Wide Art at admin@world-wide-art.com so noted... >> >>> How would I get the numbers from a sentence. i.e. If I had: >>> >>> This is the sentence with 1,234 used somewhere in it. >>> >>> How would I get: >>> >>> 1,234 >> >>[grep search=[^0-9]&replace=]This is the sentence with 1,234 used somewhere >>in it.[/grep] >> >>Change the search string to [^0-9,] if you want to retain the comma (but it >>will keep *all* commas in the source text, not just those in numbers). > >Rob Thanks, > >This did it. > >------------------------------------------------------------- >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: Numbers from Sentence (Dan Strong 2003)
  2. Re: Numbers from Sentence (World Wide Art 2003)
  3. Re: Numbers from Sentence (Joe D'Andrea 2003)
  4. Re: Numbers from Sentence (Rob Marquardt 2003)
  5. Re: Numbers from Sentence (Dan Strong 2003)
  6. Numbers from Sentence (World Wide Art 2003)
Whaaa!? You mean my super-advanced [getchars] solution wasn't what you were looking for! ;) Beer time. Later, y'all. [grep search=2&replace=34]Hello waitress, I would like 2 beers please.[/grep]-Dan ------------------------------------------------------------ http://www.StrongGraphicDesign.com (208) 319-0137 | Toll-free p/f 877-561-1656 ------------------------------------------------------------ On Fri, 21 Feb 2003 15:47:37 -0800 World Wide Art wrote: >>on 2/21/03 5:03 PM, World Wide Art at admin@world-wide-art.com so noted... >> >>> How would I get the numbers from a sentence. i.e. If I had: >>> >>> This is the sentence with 1,234 used somewhere in it. >>> >>> How would I get: >>> >>> 1,234 >> >>[grep search=[^0-9]&replace=]This is the sentence with 1,234 used somewhere >>in it.[/grep] >> >>Change the search string to [^0-9,] if you want to retain the comma (but it >>will keep *all* commas in the source text, not just those in numbers). > >Rob Thanks, > >This did it. > >------------------------------------------------------------- >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/ Dan Strong

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:

SAVECART (1997) How can I Add several Items into the cart at once? (1997) help with duplicate records posted (1998) StoreBuilder and PayPal (2002) Using the new syntax/scoping methods (2000) OR in Showifs (Was: Secure Web Server) (1999) Webmerchant (1999) Bill To - Ship To Information display (1997) Math (1997) Listserver problem (1997) Upgrade to WebCat2 from Commerce Lite (1997) unable to run webcatalog locally (1998) Test (2003) merchant accts. (1997) What is wrong here? (2000) A Global Variable (1997) bug in [SendMail] (1997) [WebDNA] form data compared to existing database (2016) email [title] (1997) Re:Variable Math (1998)