Re: [WebDNA] drop off not round off

This WebDNA talk-list message is from

2011


It keeps the original formatting.
numero = 106532
interpreted = N
texte = grep (A.K.A. "regex") means search and replace, like always.. but = variables are also allowed in the search/replace strings. find: (.*) =3D find any number of any characters, and save that string into \1 [0-9] =3D find one digit (number between 0-9) replace: with what is in \1 -G > It works! Thanks for that! >=20 > But as a unix, how does each code do? >=20 > [grep search=3D(.*)[0-9]&replace=3D\1] > [the_value][/grep] >=20 > Thanks again... JV >=20 > On Wed, Apr 13, 2011 at 9:45 PM, William DeVaul = wrote: > [grep search=3D(.*)[0-9]&replace=3D\1][the_value][/grep] >=20 > This should drop the last number in your example. The grep in WebDNA = is somewhat limited in version 6. Not sure about version 7 or later.=20 >=20 > Bill >=20 > On Tue, Apr 12, 2011 at 5:24 PM, sgbc cebu wrote: > Hi, >=20 > How to > use actual numbers (1) > to get wished results (3) > of .407 and not .408 > in webdna? > Intend to "dropped off" some digits not "round off"=20 >=20 >=20 >=20 > 123 > Actual > NumbersDNA > [Format 3f]Wished > Result > 0.66490.6650.664 > 0.25710.2570.257 > 0.40780.4080.407 >=20 > Thanks, > Jess >=20 >=20 Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] drop off not round off (Govinda 2011)
  2. Re: [WebDNA] drop off not round off (sgbc cebu 2011)
  3. Re: [WebDNA] drop off not round off (Scott Walters 2011)
  4. Re: [WebDNA] drop off not round off (Brian Fries 2011)
  5. Re: [WebDNA] drop off not round off (William DeVaul 2011)
  6. Re: [WebDNA] drop off not round off (Govinda 2011)
  7. [WebDNA] drop off not round off (sgbc cebu 2011)
grep (A.K.A. "regex") means search and replace, like always.. but = variables are also allowed in the search/replace strings. find: (.*) =3D find any number of any characters, and save that string into \1 [0-9] =3D find one digit (number between 0-9) replace: with what is in \1 -G > It works! Thanks for that! >=20 > But as a unix, how does each code do? >=20 > [grep search=3D(.*)[0-9]&replace=3D\1] > [the_value][/grep] >=20 > Thanks again... JV >=20 > On Wed, Apr 13, 2011 at 9:45 PM, William DeVaul = wrote: > [grep search=3D(.*)[0-9]&replace=3D\1][the_value][/grep] >=20 > This should drop the last number in your example. The grep in WebDNA = is somewhat limited in version 6. Not sure about version 7 or later.=20 >=20 > Bill >=20 > On Tue, Apr 12, 2011 at 5:24 PM, sgbc cebu wrote: > Hi, >=20 > How to > use actual numbers (1) > to get wished results (3) > of .407 and not .408 > in webdna? > Intend to "dropped off" some digits not "round off"=20 >=20 >=20 >=20 > 123 > Actual > NumbersDNA > [Format 3f]Wished > Result > 0.66490.6650.664 > 0.25710.2570.257 > 0.40780.4080.407 >=20 > Thanks, > Jess >=20 >=20 Govinda

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:

Rendering out a page (1997) Database Connectivity (1999) Cart passing in URL... (2004) Exclamation point (1997) New Website with Redakto CMS (2003) RE: [WebDNA] Security Groups (2010) docs for WebCatalog2 (1997) Mac Webcat 3.0.3b1 memory leak redirect inside search (1998) WebCat b15 Mac plug-in (1997) Emailer port change (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) More Applescript (1997) Adding multiple items to Cart (1999) Altivec (Velocity engine) (2000) Location of Webcat site in folder hierarchy (1997) search context w shownext works! (1997) Nested Loops and SHOWIFs (1997) Fun with Dates - revisited (1997) Customer login feature (2004) Public beta 5 of WebCatalog 4.0 is now available (2000)