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
Throwing nuclear weapons into the sun
Making everybody on Earth disappear
A threat from an alien with a mighty robot
A new technology or communications medium
Providing a magic fish to a Miss Universe
Establishing a Group mind
Results (163 votes). Check out past polls.