Thread Regex Problem/Frage (6 answers)
Opened by Ionit at 2015-01-14 12:22

payx
 2015-01-14 12:57
#179231 #179231
User since
2006-05-04
564 Artikel
BenutzerIn

user image
grep {length($_)<=25} split /\s*,\s*/, (split /:\s*/, $string)[1];

PS: Besser:
Code (perl): (dl )
1
2
use 5.010;
say for grep {length($_)<=25} split /\s*,\s*/, ($string =~ s/^.+?: //r);


HTH
Grüße
payx
Last edited: 2015-01-14 13:05:16 +0100 (CET)

View full thread Regex Problem/Frage