Bert Randolf: RegExp

Beitrag lesen

Hallo,

my @u;
$u[0]='http://bla.com/bla/a34253-433n-345m_nav.htm';
$u[1]='http://bla.com/bla/bd-2345-sd43_nav.htm';
$n[2]='http://bla.com/bla/bd-2345-sd43_ext.htm';
foreach(@u){
my $flg=($_ =~/http:.*?/[^/].*?_nav.htm/)?'ja':'nein';
print $_.':'.$flg."\n";
}

Bert

p.S. Keine Garantie auf enthaltene Fehler :)

--
I hate! people who don't think.