You're on the right track, though I suspect that the +? might not be doing what you want it do. It would help to show us a few representative records.
Would something like
work?while ( /^((?:DES|TN).*?(?:DATE|ZONE)[ A-Z0-9]*)$^$/sm ) { # $1 is the matched record, without the blank line }
In reply to Re: Regex Question
by dws
in thread Regex Question
by set_uk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |