Re: Grep to remove all characters except digits?
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 44418
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]Thanks, this is pretty much what I was using in another web site. I was actually hoping that grep could do it more easily or efficiently ... :)Sincerely,Kenneth Grome---------------------------------------------------WebDNA Professional Training and Development Center175 J. Llorente Street +63 (32) 255-6921Cebu City, Cebu 6000 kengrome@webdna.netPhilippines 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:
>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]Thanks, this is pretty much what I was using in another web site. I was actually hoping that grep could do it more easily or efficiently ... :)Sincerely,Kenneth Grome---------------------------------------------------WebDNA Professional Training and Development Center175 J. Llorente Street +63 (32) 255-6921Cebu City, Cebu 6000 kengrome@webdna.netPhilippines 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:
is this how [break] works? (1998)
SUBMIT buttons not working.... (2000)
Nested [SEARCH] and [REPLACE] problem. (1997)
[Announce] Newest Commerce Site based on WebCatalog (1997)
NT Manual (1997)
turning every 5th line red (1999)
WebCat2: Master Counter snippet (1997)
[WebDNA] RESTART WebDNA (2016)
RE: PIXO support (1997)
Format all of a sudden doesn't work (1997)
Carts & Refering URLs (1997)
WC2.0 Memory Requirements (1997)
SQL statements (2002)
Bad Suffix (1999)
Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (2003)
Help--WebCat setup (2000)
How to find 100 most recent additions. (1997)
Mac v. NT (1998)
Sorting search results (1998)
Associative lookup style? + bit more (1997)