Leser: 29
perl -e '$str = "Perl, Froschpopo, CGI"; @arr = split(/\b\W*\s\W*\b/,$str); print lc $_,"\n" for @arr'
$str = "Perl, Froschpopo, \"Camel book\", CGI, \"1, 2, 3 Meins!\"";
1 2 3 4 5 6 7
$str = 'Perl, Froschpopo, "Camel book", CGI, "1, 2, 3 Meins!", Das ist ein Test "Angefuehrt", Klappt!'; while($str=~/(?:^|,)\s*("[^"]*"|[^,]*)/gc) { my $b=$1; $b=~s/^"(.+)"$/$1/sg; print "$b\n"; }
while($str=~/(?:^|,)\s*("[^"]{3,}"|[^,]{3,})/gc)