Re: Numbers from Sentence

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 47998
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 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/ 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 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/ World Wide Art

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:

Searchable list archive (1997) Webmerchant/Cybercash (2000) WebTen and WebCat (1997) Running 2 two WebCatalog.acgi's (1996) For those of you not on the WebCatalog Beta... (1997) Further on formula.db failure to calculate shipCost (1997) [WebDNA] .html suffix (2014) absolute paths for databases? (1997) Possible Bug in 2.0b15.acgi (1997) WebCat2 several catalogs? (1997) Weird problems with [SHOWIF]s (1997) syntax question, not in online refernce (1997) Signal Raised Error (Part III) (1997) Can you do this??? and other stuff (1997) locking variables? (2000) Processing all html files through WebCat or Typhoon (1998) Running 2 two WebCatalog.acgi's (1996) Opinion: [input] should be called [output] ... (1997) 100% CPU (2003) Server Freeze (1998)