Re: [WebDNA] output of all non alphaNumeric characters?
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 102200
interpreted = N
texte = O.K., one last post to myself! ;-) (for archives sake)The code below produces the list with no spaces/delimiters..and since the listis static, I can now use the output to put in a convertcharsdatabase (or what-have-you) to make for quickerreference. Of course, you could do this all in a Bashscript as well.. (and then copy/paste the output to aconvertchars .db).. but this is a WebDNA list!btw, I grabbed the page source output.. not the html output.*****************************************[grep search=%20&replace=][grep search=[%0D%0A%0B]*&replace=][unurl][loop start=32&end=255&advance=1] [hideif [index]=127] [if ([index] > 47) & ([index] < 58)] [else] [if ([index] > 64) & ([index] < 91)] [else] [if ([index] > 96) & ([index] < 123)] [else] [shell]echo [index] | awk '{printf("%c", $1)}'[/shell] [/else] [/if] [/else] [/if] [/else] [/if] [/hideif][/loop][/unurl][/grep][/grep]******************************************O.K., on to your regularly scheduled programming.Donovan-- Donovan D. Brooke PH: 1 (608) 770-3822------------------------------------------------VPWebDNA Software Corporation16192 Coastal HighwayLewes, DE 19958
Associated Messages, from the most recent to the oldest:
O.K., one last post to myself! ;-) (for archives sake)The code below produces the list with no spaces/delimiters..and since the listis static, I can now use the output to put in a convertcharsdatabase (or what-have-you) to make for quickerreference. Of course, you could do this all in a Bashscript as well.. (and then copy/paste the output to aconvertchars .db).. but this is a WebDNA list!btw, I grabbed the page source output.. not the html output.*****************************************[grep search=%20&replace=][grep search=[%0D%0A%0B]*&replace=]
[unurl][loop start=32&end=255&advance=1] [hideif [index]=127] [if ([index] > 47) & ([index] < 58)] [else] [if ([index] > 64) & ([index] < 91)] [else] [if ([index] > 96) & ([index] < 123)] [else]
[shell]echo [index] | awk '{printf("%c", $1)}'[/shell] [/else] [/if] [/else] [/if] [/else] [/if] [/hideif][/loop][/unurl][/grep][/grep]******************************************O.K., on to your regularly scheduled programming.Donovan-- Donovan D. Brooke PH: 1 (608) 770-3822------------------------------------------------VPWebDNA Software Corporation16192 Coastal HighwayLewes, DE 19958
Donovan Brooke
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:
WebCatalog NT beta 18 problem (1997)
Re:my First Ship table (1998)
WebDNA implementation of MD5 algorithm? (2003)
WebCat2: Items xx to xx shown, etc. (1997)
Re:How to Display text in empty fields (1997)
Problem with date and ranges (2002)
[WebDNA] .html extension (2012)
I give up!! (1997)
Frames and WebCat (1997)
Search in 2 or more catalogs (1997)
Searhing for logic (1999)
Multi or auto submit (1999)
Editing the search string (1997)
Math (1997)
Newbie question (1998)
SMSI: closedatabase then replacefounditems inside thesame searchcontext ... (2002)
To Cookie or Not to Cookie? Was: duplicate cart numbers (2002)
creator code (1997)
Random Command (1997)
math on date? (1997)