hambo has asked for the wisdom of the Perl Monks concerning the following question:
The "next" works fine if the <Bluebird> tag is not split over a newline (as in example(2) above), but fails when the <Bluebird> tag is split over a newline (as in example(1) above).LINE: while ( <> ) { next LINE if (m/\.{4}<B.*ird>/s .. /(\+\=\+)$/); print; }
20040908 Edit by ysth: code in code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Matching a range of lines using a regex (the .. and ... operators)
by Zaxo (Archbishop) on Sep 01, 2004 at 12:24 UTC | |
|
Re: Matching a range of lines using a regex (the .. and ... operators)
by Random_Walk (Prior) on Sep 01, 2004 at 12:18 UTC | |
|
Re: Matching a range of lines using a regex (the .. and ... operators)
by caedes (Pilgrim) on Sep 01, 2004 at 12:18 UTC | |
|
Re: Matching a range of lines using a regex (the .. and ... operators)
by Roger (Parson) on Sep 01, 2004 at 12:33 UTC | |
|
Re: Matching a range of lines using a regex (the .. and ... operators)
by ccn (Vicar) on Sep 01, 2004 at 12:21 UTC | |
|
Re: Matching a range of lines using a regex (the .. and ... operators)
by Jaap (Curate) on Sep 01, 2004 at 12:21 UTC |