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

Both

comment nust be removed 9

and

comment nust be removed 10

are incorrect, they should both stay under the rules you posted.

Replies are listed 'Best First'.
Re^6: Regex for removing Template::Toolkit comments?
by bliako (Abbot) on Aug 27, 2018 at 14:46 UTC

    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)