Re: How to remove comments with grep?

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 49298
interpreted = N
texte = >Kenneth Grome wrote: >My original webdna template file has a lot of webdna comments in it. >I want to remove all these comments when writing this file to a new >file. > >You cannot, at least not with grep alone. You need an actual parser >(finite state machine actually) to correctly handle either WebDNA or >HTML comments. Grep is a line oriented operator, instead of a stream >oriented operator, (although you can fake out the Perl regex's to >treat the entire string as one 'line').Thanks John. It looks like I need a different solution than webdna ... ;) -- Sincerely, Kenneth GromePS: My email address is kengrome@softhome.net until further notice.------------------------------------------------------------- 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:

    
  1. Re: How to remove comments with grep? (Kenneth Grome 2003)
  2. Re: How to remove comments with grep? (Kenneth Grome 2003)
  3. Re: How to remove comments with grep? (John Peacock 2003)
  4. How to remove comments with grep? (Kenneth Grome 2003)
>Kenneth Grome wrote: >My original webdna template file has a lot of webdna comments in it. >I want to remove all these comments when writing this file to a new >file. > >You cannot, at least not with grep alone. You need an actual parser >(finite state machine actually) to correctly handle either WebDNA or >HTML comments. Grep is a line oriented operator, instead of a stream >oriented operator, (although you can fake out the Perl regex's to >treat the entire string as one 'line').Thanks John. It looks like I need a different solution than webdna ... ;) -- Sincerely, Kenneth GromePS: My email address is kengrome@softhome.net until further notice.------------------------------------------------------------- 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/ 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:

[WebDNA] Corrupted Db that Table-Search other db's (2011) Searching multiple Databases (1997) and more [shipcost].... (2001) Bug Report, maybe (1997) snicker, snicker (1997) [WriteFile] problems (1997) Re2: AAgghh!! Help, please. SSL strikes again. (1997) Warning Message? (2000) [WebDNA] Pages dying (2008) Can't Search field (1998) Help! (1996) Thanks for tips, more quest (1997) [WebDNA] [SETMIMEHEADER] (2013) iis 4.0 (1997) WebCat2final1 crashes (1997) Hey .. so when are you guys (2004) PCS Frames-Default page is solution! (1997) [countChars] from