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 somewherein it.[/grep]Change the search string to [^0-9,] if you want to retain the comma (but itwill keep *all* commas in the source text, not just those in numbers).Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.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:
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 somewherein it.[/grep]Change the search string to [^0-9,] if you want to retain the comma (but itwill keep *all* commas in the source text, not just those in numbers).Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.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)