But given the data I posted earlier it still matches ZONE even when not followed by blank line.((?:^DES|^TN).*?(?:(?:DATE|ZONE)[ A-Z0-9]*)(?=$^$)?)
Trying to use (?=$^$)? to say only match the previous pattern if followed by the first blank line.
But given data :-
Only matches upto ZONE and not DATE.TN 001 0 02 01 05 RLS ZONE 001 07 AO3 08 09 DATE 9 MAR 2000
In reply to Re: Re: Regex Question
by set_uk
in thread Regex Question
by set_uk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |