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] Successful, working WebDNA7/CentOS install? (2013) default value from Lookup (was Grant, please help me) (1997) Need WebDNA that crashes server for testing (2000) SendMail question (2004) WebCat2b13MacPlugin - [math][date][/math] problem (1997) CHMOD recursive for directories (2006) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) Almost a there but..bye bye NetCloak (1997) Sorting by date (1997) For those of you not on the WebCatalog Beta... (1997) Re[2]: Enhancement Request for WebCatalog-NT (1996) Another question (1997) Help needed! (SIMS recommendation) (1998) [WebDNA] TextExpander snippets (2013) Autoreturn Submit? (1997) Running _every_ page through WebCat-error.html (1997) Searchable list archive (1997) color (1999) Add htmlarea 3 to SiteBuilder (2004) [WebDNA] Can WebDNA corrupt a db? (2012)