Re: Removing user entered whitespace...
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 60332
interpreted = N
texte = Here is the code I used to space the numbers:-[text]cardnumber=[listwords words=[card]&delimiters= ][word][/listwords][/text][text]cardchars=[countchars][cardnumber][/countchars][/text][getchars start=1&end=4][cardnumber][/getchars][!][/!] -- [getchars start=5&end=8][cardnumber][/getchars][!][/!] -- [getchars start=9&end=12][cardnumber][/getchars][!][/!] -- [getchars start=13&end=16][cardnumber][/getchars][!][/!][showif [cardchars]>16] -- [getchars start=17&end=20][cardnumber][/getchars][/showif][!][/!][showif [cardchars]>20] -- [getchars start=21&end=24][cardnumber][/getchars][/showif]Dont know if it is the best way or not but it works just fine for me, I am always open to suggestions (or critisism I guess... ) ;-)CheersAlandevaulw@onebox.com wrote:>Rather than worry about all of the characters that might be entered that would need to be escaped/trapped, this will keep only numbers:>>[grep search=([0-9])*&replace=\1][card][/grep]>>Can you post the code you use to space the card number?>>Bill>>-----Original Message----->From: Tom Duke
>Sent: Tue, 7 Dec 2004 13:57:17 -0000>To: "WebDNA Talk" >Subject: Re: Removing user entered whitespace...>>Alan,>>It won't remove carraige returns from textarea's, you could do this by using a convertchars db:->>FromTo>%20>%0B>>This will convert spaces to nothing and soft carraige returns to nothing.>>You could possibly also achieve this by adding the hex code for a soft return to your listwords delimiters.>>- Tom>>------------------------------------------------------------->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://webdna.smithmicro.com/>>>>------------------------------------------------------------->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://webdna.smithmicro.com/>> >-------------------------------------------------------------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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Here is the code I used to space the numbers:-[text]cardnumber=[listwords words=[card]&delimiters= ][word][/listwords][/text][text]cardchars=[countchars][cardnumber][/countchars][/text][getchars start=1&end=4][cardnumber][/getchars][!][/!] -- [getchars start=5&end=8][cardnumber][/getchars][!][/!] -- [getchars start=9&end=12][cardnumber][/getchars][!][/!] -- [getchars start=13&end=16][cardnumber][/getchars][!][/!][showif [cardchars]>16] -- [getchars start=17&end=20][cardnumber][/getchars][/showif][!][/!][showif [cardchars]>20] -- [getchars start=21&end=24][cardnumber][/getchars][/showif]Dont know if it is the best way or not but it works just fine for me, I am always open to suggestions (or critisism I guess... ) ;-)CheersAlandevaulw@onebox.com wrote:>Rather than worry about all of the characters that might be entered that would need to be escaped/trapped, this will keep only numbers:>>[grep search=([0-9])*&replace=\1][card][/grep]>>Can you post the code you use to space the card number?>>Bill>>-----Original Message----->From: Tom Duke >Sent: Tue, 7 Dec 2004 13:57:17 -0000>To: "WebDNA Talk" >Subject: Re: Removing user entered whitespace...>>Alan,>>It won't remove carraige returns from textarea's, you could do this by using a convertchars db:->>FromTo>%20>%0B>>This will convert spaces to nothing and soft carraige returns to nothing.>>You could possibly also achieve this by adding the hex code for a soft return to your listwords delimiters.>>- Tom>>------------------------------------------------------------->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://webdna.smithmicro.com/>>>>------------------------------------------------------------->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://webdna.smithmicro.com/>> >-------------------------------------------------------------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://webdna.smithmicro.com/
Alan White
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 WebDNA 5 command reference (2003)
Sorry But This seems to be my fate (2000)
question: webmerchant connection (1997)
Problem (1997)
Re:Change WebDNA-Talk Mail due to no digest for 1wk (1997)
No Line Breaks Appearing (2000)
WebCat2b15MacPlugin - showing [math] (1997)
showif with math? (2000)
ShowNext Page Style (2003)
Looking for a Manual (1997)
Problem (1997)
sending two mails from one template (2004)
unable to launch acgi in WebCat (1997)
WCS Newbie question (1997)
[TaxableTotal] - not working with AOL and IE (1997)
Tags not being Interpreted (1999)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
WC Database Format (1997)
attacment pdf (2001)
Disappearing HTML/WebDNA (1998)