in reply to Re^5: Regex for removing Template::Toolkit comments?
in thread Regex for removing Template::Toolkit comments?

sorry, yes you are right

[% # this is a comment to the end of line foo = 'bar' %] [%# placing the '#' immediately inside the directive tag comments out the entire directive %]
(http://www.template-toolkit.org/docs/modules/Template.html#section_COMMENTS)