Re: How to remove comments with grep?

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 49248
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').John-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748 ------------------------------------------------------------- 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').John-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748 ------------------------------------------------------------- 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/ John Peacock

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:

Shopping Cart Page (1997) typhoon vs. webcatalog (1997) international time (1997) download database (2000) Exclamation point (1997) [MoveFile] (2000) WebCat2 - [format thousands] (1997) 2.0.1 new commands and contexts (1997) Displaying photo attached to first record (1997) WC2f3 (1997) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) calculating tax rates, mail order solutions and version 2 (1997) Location of Browser Info.txt file (1997) WebMerchant (1997) shipcost (1997) WC2.0 Memory Requirements (1997) International Orders (1998) Format of Required fields error message (1997) HTML Editors (1997) Multiple Passwords (1997)