Re: Numbers from Sentence

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 47996
interpreted = N
texte = 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 Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.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)
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 Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.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/ Rob Marquardt

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:

new cart IDs being assigned somehow (1997) sandboxes with 6.0 (2004) [random] only for 1-100??? (1997) setlineiems and UnitShip Cost (2000) Sendmail and SMTP AUTH (2005) Max Record length restated as maybe bug (1997) WebDNA on Intel Mac? (2006) WebCat2 - Getting to the browser's username/password data (1997) empty shopping cart message (1997) service stop and restart (1997) Re:Running 2 two WebCatalog.acgi's (1996) Auto entering Friday's date in a field (2002) Replacing the db file (2000) A Global Variable (1997) form data submission gets truncated (1997) [taxrate] question (1997) typhoon... (1997) Re:Signal Raised (1997) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) Color options for items (1999)