in reply to Re: how to retrieve data between <script></script> and save to an array
in thread how to retrieve data between <script></script> and save to an array
Hi, there, the one you posted following won't work unfortunately
my $left = quotemeta '<fun>'; my $right = quotemeta '</nuf>'; while( $line =~ /$left(.*?)$right/i ){ my $between = $1; }
in my string, there are mixed one line and multiple line between <script> and </script>, how to use regular expression to handle both cases ? Thanks, curd
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: how to retrieve data between <script></script> and save to an array
by Anonymous Monk on Apr 10, 2012 at 08:04 UTC | |
by curd8341 (Initiate) on Apr 11, 2012 at 00:47 UTC |