reg_ex to remove default comments in default templates
Posted: Tue Jul 20, 2010 4:22 pm
Hello, I got asked again on this, "is there a way to kill the comments in the default templates". At the moment not directly AFAIK but this is a simple trick to knock out the comments.
In Dreamweaver (or you editor of choice) use the regular expression option (Ctrl+f in DW)
use in the find
{\*(.*?)\*}
test with "find next" and if all ok and you are targeting right then in the "Replace" just make that blank and hit Replace all..
A simple trick but very useful to learn as you can do many other things with it.. Hope this helps.. Cheers -JeremyBass
In Dreamweaver (or you editor of choice) use the regular expression option (Ctrl+f in DW)
use in the find
{\*(.*?)\*}
test with "find next" and if all ok and you are targeting right then in the "Replace" just make that blank and hit Replace all..
A simple trick but very useful to learn as you can do many other things with it.. Hope this helps.. Cheers -JeremyBass