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:

shownext (1997) Nesting Search Within Tag? (1997) WebCat2: Formulas.db question (1997) Double postings (2000) REPOST: Large founditems loops (2000) GuestBook example (1997) Multiple prices (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) WC2f3 (1997) NT Setup (1998) Donovans Theorem (2003) I guess I have a problem with commitment (2003) more on quicktime test stuff (1997) Wrapping text (1998) WC Database Format (1997) Database Connectivity (1999) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) [ListFiles] from a remote host (2003) bug in [SendMail] (1997) 100% sorry about that (1998)