[WebDNA] Grep the whole page

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 108664
interpreted = N
texte = > grep the whole page? Yes of course. > Sounds like a CPU overhead .. It doesn't seem to slow down any of the servers I've used it on. On the contrary, it effectively speeds up file delivery by reducing the generated file size on the server. > as you would also need to get rid of %0D and > all the extra spaces you are generating. %0D is not an issue on Linux, and it seems I made a mistake in my code. Here's the correct version: [grep search=[%0A]&replace=] entire page here ... [/grep] For Windows/Mac servers I use this code instead: [grep search=[%0A]&replace=] [grep search=[%0D]&replace=] entire page here ... [/grep] [/grep] > I've always thought of Grep as a bit like using a > sledgehammer to crack a walnut, but maybe I'm just a big > scaredy cat. Maybe so ... :) Sincerely, Kenneth Grome Associated Messages, from the most recent to the oldest:

    
  1. [WebDNA] Grep the whole page (WebDNA Solutions 2012)
> grep the whole page? Yes of course. > Sounds like a CPU overhead .. It doesn't seem to slow down any of the servers I've used it on. On the contrary, it effectively speeds up file delivery by reducing the generated file size on the server. > as you would also need to get rid of %0D and > all the extra spaces you are generating. %0D is not an issue on Linux, and it seems I made a mistake in my code. Here's the correct version: [grep search=[%0A]&replace=] entire page here ... [/grep] For Windows/Mac servers I use this code instead: [grep search=[%0A]&replace=] [grep search=[%0D]&replace=] entire page here ... [/grep] [/grep] > I've always thought of Grep as a bit like using a > sledgehammer to crack a walnut, but maybe I'm just a big > scaredy cat. Maybe so ... :) Sincerely, Kenneth Grome WebDNA Solutions

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:

[ListFiles] & [loop] (1998) Was 5.0 Pricing, now Sandbox versus Website and ruminating (2003) [OT] Apple and 128bit SSL (2003) Serial Num (2003) ListFiles and .DS_Store (2004) [addlineitems] display (1997) Re:HELP - NONE STOP DIGESTS. Digest for 4/24/97) (1997) Promise of future help (1998) Grep Master Needed (2003) RAM variables (1997) Where is f2? (1997) setting taxable to true (1997) HELP WITH DATES (1997) Re:listfiles-looking for slick solution (1997) [OT] two domains one site... (2005) Showif Context combined with Search (1997) Protect vs Authenicate (1997) Roundup function? (1997) trouble with [shownext] (2000) WebCat2b13MacPlugIn - [showif][search][/showif] (1997)