MacScissor has asked for the wisdom of the Perl Monks concerning the following question:
Now, I want to do a Regex on the last line (zzzzz). When successful, I want to do a Regex on the middle line (yyyyy). If this is successful too, I want to do a Regex on the top line (xxxxx). Can anyone tell me how to do that? Thank you in advance!xxxxx yyyyy zzzzz
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regex on previous lines
by choroba (Cardinal) on Jan 31, 2013 at 16:36 UTC | |
|
Re: regex on previous lines
by moritz (Cardinal) on Jan 31, 2013 at 17:03 UTC | |
|
Re: regex on previous lines
by si_lence (Deacon) on Jan 31, 2013 at 17:16 UTC | |
|
Re: regex on previous lines
by LanX (Saint) on Jan 31, 2013 at 17:28 UTC | |
|
Re: regex on previous lines
by talexb (Chancellor) on Jan 31, 2013 at 17:28 UTC | |
|
Re: regex on previous lines
by locked_user sundialsvc4 (Abbot) on Jan 31, 2013 at 22:45 UTC | |
|
Re: regex on previous lines (or previous lines, or FIFO array)
by Anonymous Monk on Feb 01, 2013 at 10:05 UTC |