use warnings; use strict; while (<DATA>) { print if (/start/i .. /end/i) } __DATA__ foo start checking script end foo
And to exclude the start/end:
if (/start/i .. /end/i) { print unless /start/i or /end/i; }
In reply to Re: Regex Help
by toolic
in thread Regex Help
by jack_64
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |