How to remove comments with grep?

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 49242
interpreted = N
texte = 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. My stumbling block is the grep stuff. So far I have this ...[writefile newFile.tpl] [grep search=???&replace=] [include file=oldfile.tpl&raw=T] [/grep] [/writefile]My question is this:Can someone tell me what to use in place of ??? so the grep will properly remove all the webdna contexts? I want to remove the entire context, including not only the tags but everything in between the [!] and [/!] tags.I would also like to remove the HTML comments in the same manner. If anyone can tell me how to do this as well, that will be even better.Thanks! -- 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)
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. My stumbling block is the grep stuff. So far I have this ...[writefile newFile.tpl] [grep search=???&replace=] [include file=oldfile.tpl&raw=T] [/grep] [/writefile]My question is this:Can someone tell me what to use in place of ??? so the grep will properly remove all the webdna contexts? I want to remove the entire context, including not only the tags but everything in between the [!] and [/!] tags.I would also like to remove the HTML comments in the same manner. If anyone can tell me how to do this as well, that will be even better.Thanks! -- 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:

Search Via a drop down menu? (2000) Question about replacing words (1998) New syntax feedback for 4.0 (2000) WebCat2 Append problem (B14Macacgi) (1997) Sku numbers (1997) [shownext] stumps me every 3-4 months !@%*#! (2000) WebCatalog 2.0 & WebDNA docs in HTML ... (1997) Date search - yes or no (1997) Sending HTML messages with [sendmail] (2002) Emailer Error: 158 (2003) Further on formula.db failure to calculate shipCost (1997) Re:How to Display text in empty fields (1997) You can't buy something twice... (1997) [ShowNext] (1997) Backup Server/Load Balancing (2001) RE: Web*SSL and WebCatalog (1997) Using the new syntax/scoping methods (2000) How to put the Trademark Symbol (%99) in Sendmail? (2003) f2 download problems (1997) WebCat2b13MacPlugIn - syntax to convert date (1997)