natol44 has asked for the wisdom of the Perl Monks concerning the following question:
etc etc.<START>TEXT1<END><br> <various data><br> <START>TEXT2<END><br> <various data><br> <START>TEXT3<END><br><br>
This will give me the first TEXT ($good) occurrence. But how to get all the next ones?open (FICH, "$file"); $all = <FICH>; close (FICH); my $good = $1 if ($all =~ m/$start(.*?)$end/);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Search all occurences of text delimited by START and END in a string
by flexvault (Monsignor) on May 12, 2015 at 13:29 UTC | |
by natol44 (Sexton) on May 17, 2015 at 17:16 UTC | |
|
Re: Search all occurences of text delimited by START and END in a string
by choroba (Cardinal) on May 12, 2015 at 13:14 UTC | |
|
Re: Search all occurences of text delimited by START and END in a string
by pme (Monsignor) on May 12, 2015 at 13:28 UTC | |
by kennethk (Abbot) on May 12, 2015 at 15:04 UTC |