in reply to better way to escape escapes
Hard to say without knowing more about the format
Oodles of s///ubstitutions is very easy to get wrong and very hard to get right
http://tt3.template-toolkit.org/talks/tt3-lpw2009/slides/slide17.html
See also the real discouragement Oh Yes You Can Use Regexes to Parse HTML! and the real encouragement Re^2: parsing XML fragments (xml log files) with... a regex
|
---|
In Section
Seekers of Perl Wisdom