Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^5: Regex for removing Template::Toolkit comments?

by tybalt89 (Monsignor)
on Aug 27, 2018 at 13:16 UTC ( [id://1221192]=note: print w/replies, xml ) Need Help??


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 (Monsignor) 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)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1221192]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-24 03:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found