What is WebDNA

WebDNA is a scripting and database system designed to easily build web applications.

WebDNA and BioType

BioType service is a biometric keystroke dynamic system. It will be part of WebDNA 8.5

Download WebDNA

Download WebDNA freeware, try it and register later if you want.

WebDNA resources

The list of all WebDNA instructions.
WebDNA
Software Corporation
Search WebDNA Site
 Menu


HOME


DOWNLOADS


LEARN


EDUCATION


NEWS


COMMUNITY


STORE


SUPPORT


CONTACT

[WebDNA] How to NOT remove the dot via grep ...

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103322
interpreted = N
texte = Bob Minor posted some code the other day that illustrates the use of grep to strip out all characters except for numeric digits: > [grep search=[^0-9]&replace=][value][/grep] My goal is to do nearly the same thing, but I want to leave the dot (.) character in the resulting value so it will be a floating point value. At first I was going to use this code: [listchars chars=[value]][showif 1234567890.^[char]][char] [/showif][/listchars] ... but I think grep might be more efficient if it were written properly. I only wish I knew how. Does anyone know grep well enough to suggest a grep search string that would leave not only the numeric digits but also a decimal point in the resulting value? Sincerely, Ken Grome Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] How to NOT remove the dot via grep ... (christophe.billiottet@webdna.us 2009)
  2. Re: [WebDNA] How to NOT remove the dot via grep ... (William DeVaul 2009)
  3. [WebDNA] How to NOT remove the dot via grep ... (Kenneth Grome 2009)
Bob Minor posted some code the other day that illustrates the use of grep to strip out all characters except for numeric digits: > [grep search=[^0-9]&replace=][value][/grep] My goal is to do nearly the same thing, but I want to leave the dot (.) character in the resulting value so it will be a floating point value. At first I was going to use this code: [listchars chars=[value]][showif 1234567890.^[char]][char] [/showif][/listchars] ... but I think grep might be more efficient if it were written properly. I only wish I knew how. Does anyone know grep well enough to suggest a grep search string that would leave not only the numeric digits but also a decimal point in the resulting value? Sincerely, Ken Grome 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:

[Summary] re: Emailer setup (1997) WC2.0 Memory Requirements (1997) WebCat B13 Mac CGI -- Frames question (1997) two unique banners on one page (1997) [searchString] (1997) Initiating NewCart (1997) Re:2nd WebCatalog2 Feature Request (1996) taxRate is fine but taxTotal isn't (1997) FORMS: Returning a specific page (1997) Introduction/Tutorial/QuickStart (1997) WebDNA vs PHP (2003) select menus & database design (1998) WebCatalog featured at Internet World LA... (2000) Date problems-more (1997) OT: Amazon Patents (2000) WebCatalog host... (2000) Setting up the server (1997) WebDNA Server Spec (2004) PIXO support (1997) Quickie question on the email templates (1997)