Re: Grep to remove all characters except digits?

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 44414
interpreted = N
texte = This might be the long way around... but it works.[text show=f]new_phone=[/text] [text show=f]no_chars=[countchars][phone_number][/countchars][/text][loop start=1&end=[no_chars]&advance=1] [!][/!][text show=f]phone_char=[getchars start=[index]&end=[index]][phone][/getchars][/text][showif 1234567890^[phone_char]] [!][/!] [text show=f]new_phone=[new_phone][phone_char][/text] [/showif][/loop][new_phone]----- Original Message ----- From: Kenneth Grome To: WebCatalog Talk Sent: Friday, October 25, 2002 11:38 PM Subject: Grep to remove all characters except digits? > 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/ >--- [This E-mail scanned for viruses by LRBCG.COM, Inc.] ------------------------------------------------------------- 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)
This might be the long way around... but it works.[text show=f]new_phone=[/text] [text show=f]no_chars=[countchars][phone_number][/countchars][/text][loop start=1&end=[no_chars]&advance=1] [!][/!][text show=f]phone_char=[getchars start=[index]&end=[index]][phone][/getchars][/text][showif 1234567890^[phone_char]] [!][/!] [text show=f]new_phone=[new_phone][phone_char][/text] [/showif][/loop][new_phone]----- Original Message ----- From: Kenneth Grome To: WebCatalog Talk Sent: Friday, October 25, 2002 11:38 PM Subject: Grep to remove all characters except digits? > 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/ >--- [This E-mail scanned for viruses by LRBCG.COM, Inc.] ------------------------------------------------------------- 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/ Matthew Bohne

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:

I'm new be kind (1997) Opposite of Summ=T? (2000) WebDNA dying or ... ? (2005) Secure Server (1997) Banners and sort of random display (1997) Redirect (2003) splitting numbers in webDNA? (1997) WebCat Beta NT 18 (1997) Is WebCat 3.0 necessary for calculating shipping? (2000) Re:Dumb Question about Docs (1997) Classified Ads 4 Sale (1998) Configuring E-mail (1997) textarea inputs and returns (1999) Help! WebCat2 bug (1997) UPDATE PROBLEM (1997) [Webcat 2]Next (1997) SiteGuard Admin Feature ? (1997) [WebDNA] if - combining OR and AND (2008) WebCatalog 4.0.2b5 available (2000) Apache and Webdna (2005)