http://www.perlmonks.org?node_id=996010


in reply to Re^11: Bind zone file search
in thread Bind zone file search

This is really close, but not quite right.

This regex is matching commented zone directives and if the comment is found after the real one is overwriting good answers for bad ones.

I need to avoid commented stanzas. Since commented stanzas include comment characters prior to the match of zone, I think I need a way to ensure that matches on the word zone. Am I thinking correctly?