Thread HTML mit Perl regex parsen (9 answers)
Opened by Lauvia at 2013-09-06 12:50

Lauvia
 2013-09-10 13:07
#170071 #170071
User since
2013-09-05
42 Artikel
BenutzerIn
[default_avatar]
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);

View full thread HTML mit Perl regex parsen