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:

[WebDNA] Using WebDNA with MAMP (2010) Catalogs and W* (1996) Authenticate (1997) Seeking Better Display of results... (1997) Where's Cart Created ? (1997) Thanks Grant (1997) Need WebDNA that crashes server for testing (2000) Shopping cart problem (2003) Was it something I said??? (1998) WebCat chatroom (1997) Template not completely processed (1998) how do ye do this?????? (2001) off-topic - printinglib 68K (1997) Moving Files (2000) orders being printed (1998) return two fields w/ [lookup] (1998) E-mailer error codes (1997) [WebDNA] WebDNA 8.6.4 (2020) WCS Newbie question (1997) much help needed NEWBIE alert (2000)