Grep to remove all characters except digits?

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 44413
interpreted = N
texte = My goal is to strip every non-numeric character from a form-entered telephone number, so the resulting string contains only numeric digits. Can anyone post a grep that changes every non-numeric character to blank?Sorry, I don't know much about grep, although it seems that grep would be the best tool to use for this purpose ...Thanks. Sincerely, Kenneth Grome--------------------------------------------------- WebDNA Professional Training and Development Center 175 J. Llorente Street +63 (32) 255-6921 Cebu City, Cebu 6000 kengrome@webdna.net Philippines http://www.webdna.net ---------------------------------------------------------------------------------------------------------------- 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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Grep to remove all characters except digits? (Kenneth Grome 2002)
  2. Re: Grep to remove all characters except digits? (Kenneth Grome 2002)
  3. Re: Grep to remove all characters except digits? (Alain Russell 2002)
  4. Re: Grep to remove all characters except digits? (Matthew Bohne 2002)
  5. Grep to remove all characters except digits? (Kenneth Grome 2002)
My goal is to strip every non-numeric character from a form-entered telephone number, so the resulting string contains only numeric digits. Can anyone post a grep that changes every non-numeric character to blank?Sorry, I don't know much about grep, although it seems that grep would be the best tool to use for this purpose ...Thanks. Sincerely, Kenneth Grome--------------------------------------------------- WebDNA Professional Training and Development Center 175 J. Llorente Street +63 (32) 255-6921 Cebu City, Cebu 6000 kengrome@webdna.net Philippines http://www.webdna.net ---------------------------------------------------------------------------------------------------------------- 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://search.smithmicro.com/ Kenneth Grome

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:

Using [showif] (2000) change the number format (1997) CommandSecurity? (1997) [WebDNA] [ReturnRaw] problem (2010) WebCat2 - Getting to the browser's username/password data (1997) Summing a field full of numbers ... (1997) [WebDNA] small bug when searching tables in functions (2011) Search or Lookup before Append (1998) [removehtml] (was: Undocumented tags and contexts) (2000) WC Database Format (1997) Problems searching from a FORM (1997) suffix mapping for NT? (1997) RE: How much ram??? (1997) Database Structure? (1998) Re:Adding non-SKUs to cart (1998) Setting up shop (1997) Need help with emailer- 2 issues (1997) Sendmail and textarea (1998) WebCat2 Append problem (B14Macacgi) (1997) Need relative path explanation (1997)