Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by bliako (Monsignor)
on Aug 26, 2018 at 09:55 UTC ( [id://1221125]=note: print w/replies, xml ) Need Help??


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

some 2-second later edits below...

Thanks, your code's great. To do what LanX proposed looked to me too scary(=switch to another task and read their manuals, feel free to downvote my human ingredients). And using regex's is too fragile without knowing the full spec of TT, i.e. are nested comments allowed and how to deal with [% and [%#] and [% # inside strings as Corion said. So let TT do it seems the right way to me.

Edit2: To be fair to the regex solutions: it was me who asked for a regex in the first place.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2024-04-25 15:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found