Thread Pattern Matching: Probleme Muster zu erstellen (20 answers)
Opened by peggy at 2004-08-03 16:11

esskar
 2004-08-03 16:17
#85277 #85277
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
if($string =~ m!^([\w_]+) :([\w_]+);([\w_]+) $)
{
  # dritter Fall
}
elsif($string =~ m!^([\w_]+) :([\w_]+); $)
{
  # zweiter Fall
}
elsif($string =~ m!^([\w_]+) :; $)
{
  # erster Fall
}


nicht getestet!\n\n

<!--EDIT|esskar|1091535636-->

View full thread Pattern Matching: Probleme Muster zu erstellen