in reply to Re: Regex Question
in thread Regex Question
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Regex Question
by BrowserUk (Patriarch) on Jun 03, 2003 at 11:11 UTC | |
by set_uk (Pilgrim) on Jun 03, 2003 at 11:51 UTC | |
by BrowserUk (Patriarch) on Jun 03, 2003 at 12:53 UTC |