in reply to Re: Grabbing part of an HTML page
in thread Grabbing part of an HTML page
update: Forgot to mention: if the OP's data happens to contain more than one "start ... end" sequence within the same file, this would have to be structured as a loop -- something like:# ... if ( $file =~ /$start_pattern(.*?)$end_pattern/s ) { print $1; } # ...
# while ( $file =~ /start_pattern(.*?)$end_pattern/gs ) { print "$1\n"; } #
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Grabbing part of an HTML page
by cLive ;-) (Prior) on Mar 29, 2004 at 04:58 UTC | |
by graff (Chancellor) on Mar 29, 2004 at 05:20 UTC | |
by cLive ;-) (Prior) on Mar 29, 2004 at 06:05 UTC |