in reply to Extracting similar data from html
If you plan on running this particular regex frequently, and performance is a concern, you may also want to consider compiling it with qr//:my @info = $rawdata =~ /$Start\s*(.+?)\s*$End/g; print join ';', @info;
my $regex = qr/$Start\s*(.+?)\s*$End/; my @info = $rawdata =~ /$regex/g; print join ';', @info;
|
|---|