Re: [WebDNA] output of all non alphaNumeric characters?
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 102201
interpreted = N
texte = Untested, but can't you just go with:[grep search=3D%20&replace=3D][grep=20search=3D[%0D%0A%0B]*&replace=3D][unurl][loop start=3D32&end=3D255&advance=3D1] [hideif [index]=3D127] [if ({[index] > 47) & ([index] < 58)|([index] > 64) &=20([index] < 91)|([index] > 96) & ([index] < 123)}] [else] [shell]echo [index] | awk '{printf("%c",=20$1)}'[/shell] [/else] [/if] [/hideif][/loop][/unurl][/grep][/grep]GJKOn Thu, 19 Mar 2009 13:46:02 -0500 Donovan Brooke
wrote:> O.K., one last post to myself! ;-) (for archives sake)>=20> The code below produces the list with no=20>spaces/delimiters..> and since the list> is static, I can now use the output to put in a=20>convertchars> database (or what-have-you) to make for quicker> reference. Of course, you could do this all in a Bash> script as well.. (and then copy/paste the output to a> convertchars .db).. but this is a WebDNA list!> btw, I grabbed the page source output.. not the html=20>output.>=20> *****************************************> [grep search=3D%20&replace=3D][grep=20>search=3D[%0D%0A%0B]*&replace=3D][unurl]> [loop start=3D32&end=3D255&advance=3D1]> [hideif [index]=3D127]> [if ([index] > 47) & ([index] < 58)]> [else]> [if ([index] > 64) & ([index] < 91)]> [else]> [if ([index] > 96) & ([index] < 123)]> [else]> [shell]echo [index] | awk '{printf("%c",=20>$1)}'[/shell]> [/else]> [/if]> [/else]> [/if]> [/else]> [/if]> [/hideif]> [/loop]> [/unurl][/grep][/grep]> ******************************************>=20> O.K., on to your regularly scheduled programming.>=20> Donovan
Associated Messages, from the most recent to the oldest:
Untested, but can't you just go with:[grep search=3D%20&replace=3D][grep=20search=3D[%0D%0A%0B]*&replace=3D][unurl][loop start=3D32&end=3D255&advance=3D1] [hideif [index]=3D127] [if ({[index] > 47) & ([index] < 58)|([index] > 64) &=20([index] < 91)|([index] > 96) & ([index] < 123)}] [else] [shell]echo [index] | awk '{printf("%c",=20$1)}'[/shell] [/else] [/if] [/hideif][/loop][/unurl][/grep][/grep]GJKOn Thu, 19 Mar 2009 13:46:02 -0500 Donovan Brooke wrote:> O.K., one last post to myself! ;-) (for archives sake)>=20> The code below produces the list with no=20>spaces/delimiters..> and since the list> is static, I can now use the output to put in a=20>convertchars> database (or what-have-you) to make for quicker> reference. Of course, you could do this all in a Bash> script as well.. (and then copy/paste the output to a> convertchars .db).. but this is a WebDNA list!> btw, I grabbed the page source output.. not the html=20>output.>=20> *****************************************> [grep search=3D%20&replace=3D][grep=20>search=3D[%0D%0A%0B]*&replace=3D][unurl]> [loop start=3D32&end=3D255&advance=3D1]> [hideif [index]=3D127]> [if ([index] > 47) & ([index] < 58)]> [else]> [if ([index] > 64) & ([index] < 91)]> [else]> [if ([index] > 96) & ([index] < 123)]> [else]> [shell]echo [index] | awk '{printf("%c",=20>$1)}'[/shell]> [/else]> [/if]> [/else]> [/if]> [/else]> [/if]> [/hideif]> [/loop]> [/unurl][/grep][/grep]> ******************************************>=20> O.K., on to your regularly scheduled programming.>=20> Donovan
"Gary Krockover"
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:
All quiet (2004)
suffix mapping, use of cache, etc. (1997)
More on the email templates (1997)
[WebDNA] Nginx (2010)
searching with groups (1997)
RE: Shopping Cart Questions (1998)
Not really WebCat - need HTML Grider (1997)
Click-through/Referral --Thanks for insight! (2000)
Am I going senile? (Price recalc based on quantity) (1997)
[ShowNext] (1997)
WC2.0 Memory Requirements (1997)
Sorting error (1997)
Max Record length restated as maybe bug (1997)
Variables not being passed *back* (2000)
ImageMagick and [shell] (2003)
[SearchString] problem with [search] context (1997)
Examples Link? (2000)
Webcat XML/XSLT Performance vs. static Html (2006)
[WebDNA] A good PDF reference for beginners (2011)
OT: Typhoon (1998)