Thread regulärer ausdruck (18 answers)
Opened by Gast at 2004-07-13 17:39

norman
 2004-07-13 18:26
#84211 #84211
User since
2004-03-11
46 Artikel
BenutzerIn
[default_avatar]
bin ich zu blöd??? das funktioniert nicht:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
my @array = ("cd.interpret.album.song","cd.interpret.album","cd.interpret","cd");


for my $i (0..$#array) {

# alle einträge mit 2 punkten, sollte "cd.interpret.album" ergeben
if($array[$i] =~ m~^(\w+\.){2}\w$~) {
print $array[$i] ."\n";
}

}
\n\n

<!--EDIT|norman|1089728828-->

View full thread regulärer ausdruck