Thread HTML mit Perl regex parsen
(9 answers)
Opened by Lauvia at 2013-09-06 12:50
ich habe den Fehler gefunden :-)
Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 #-----collect Signal Informations----------------------------------- my $regexp = qr { class='([^']+)'[^0-9]+<TD>([^,]+)<\/TD>[^0-9]+<TD>([^,]+)<\/TD><TD>([^,]+)<\/TD><TD>([^']+)</TD> }x; # ENDE Regexp ($Sig_ConChk, $Bus_Value, $Ecu_Value, $deviation, $Sig_ConCom)= $line =~ $regexp; push(@table, $Sig_ConChk, $Bus_Value, $Ecu_Value, $deviation, $Sig_ConCom); |