http://qs321.pair.com?node_id=1197178


in reply to A line of code matches the question

Presumably you mean a "regular expression"?

The most basic thing is you probably want multiline mode with a /m

And odds are you're going to want an XML parser to make your life easier when someone changes minor details in the file. I recommend XML::Tiny which great for most use cases and has no dependencies.