Re: Removing user entered whitespace...
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 60415
interpreted = N
texte = The search string I posted is not correct.Try [grep search=[^0-9]&replace=]This should remove anything that is not a number.BillOn Dec 7, 2004, at 9:07 AM, devaulw@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:
The search string I posted is not correct.Try [grep search=[^0-9]&replace=]This should remove anything that is not a number.BillOn Dec 7, 2004, at 9:07 AM, devaulw@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/
William DeVaul
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:
RE: Formulas.db + Users.db (1997)
Programmer needed (2001)
Calculate UnitShipCost in Formulas.db (1999)
weening me off overwriting form variables. John Peacock? (2000)
retain raw [cart] submitted value (2004)
Selected Item in Pop-down (2003)
NT error logs (1997)
Problems getting parameters passed into email. (1997)
Navigator Parsing (1997)
This message couldn't reach the list! (1998)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
Forms Search Questions (1997)
shownext & math (1997)
Re:UPS, FEDEX TRACKING (1999)
Append..... doesn't (2000)
[taxRate] [TaxTotal] ? (1997)
unsubscribe (1997)
Site Builder & IE Mac (2004)
Locking up with WebCatalog... (1997)
WebCatalog dying in NT (1998)