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:
New Command prefs ... (1997)
re: Large databases in WebCat (1997)
[WebDNA] Triggers.db wiped completely blank (2011)
test (2004)
t or f (1997)
webcat method for waiting specific amount of time? (2000)
webcat and webkitty votes needed (1997)
[WebDNA] why is this cookie being set to expire at end of browser (2009)
WebDNA and SQL (2003)
BUG REPORT: numeric ge, le, gr & ls comparisons don't work (1999)
ListFields and [name] (1997)
attacment pdf (2001)
Re:E-Mailer (WebCatb15acgiMac) (1997)
I try hard to think positively (1998)
[SearchString] usage (1997)
Where's Cart Created ? (1997)
ssl/empty cart problem (2003)
Hard Questions ? (1997)
Using [detete] (1998)
Running 2 two WebCatalog.acgi's (1996)