in reply to Re^13: Bind zone file searchin thread Bind zone file search
right, I need to avoid stanzas that begin with the // or #
Try the following modified regex in the subroutine:
^ ^ ^
| | |
| | + - 0+ whitespaces
| + - Match "zone" and 0+ whitespaces that are not preceded by an "
+#" or "/"
+ - Negative lookbehind
My fellow monks
Can't tell (I'm NSA/FBI/HS/...)
Others (explain your deviation)
Results (80 votes). Check out past polls.