hi,
why doesn' t the regex work?
#!/usr/bin/perl
use warnings;
use strict;
use diagnostics;
use WWW::LEO;
use Data::Dumper;
open(INFO, "< /home/metalfan/todo/dictionaries/Vokabeln\ -\ absolut
+ion\ gap.html") || die("can't open datafile: $!");
my @file=<INFO>;
{
my $result;
for my $entry (@file)
{
# file format:
# <TR>
# <TD WIDTH=10% HEIGHT=61 VALIGN=TOP>
# <P ALIGN=LEFT>Wrought</P>
# </TD>
# <TD WIDTH=90%>
# <P><BR>
# </P>
# </TD>
# </TR>
if ($entry =~ m/
<TR>
<TD\sWIDTH=\d{1,2}%\sHEIGHT=\d{1,3}\sVALIG
+N=TOP>
<P\sALIGN=LEFT>(.+)<\/P>
<\/TD>
<TD\sWIDTH=\d{1,2}%>
<P><BR>
<\/P>
<\/TD>
<\/TR>
/sx)
{
print "$1\n";
}
}
}
greets