reg_ex to remove default comments in default templates

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
JeremyBASS

reg_ex to remove default comments in default templates

Post by JeremyBASS »

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
Last edited by JeremyBASS on Tue Jul 20, 2010 9:08 pm, edited 1 time in total.
Post Reply

Return to “Tips and Tricks”