I think I found the problem.
I modified your regex slightly in the beginning it starts with "/^zone..."
I found after posing this question last night that a few of the zone files have stanzas commented out.
The ^ in combination with the change to $/ seem to conflict with each other.
I think it would be easier to add a not part to the regex before zone so that what is before zone is not a comment character identifier.
In reply to Re^4: Bind zone file search
by ranceh
in thread Bind zone file search
by ranceh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |