Thread regular expressions (9 answers)
Opened by paidopoieo at 2006-01-03 02:41

esskar
 2006-01-03 11:33
#61440 #61440
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
ohne regexp
Code: (dl )
1
2
3
4
my @chars = split //, $string;
my $h = ();
$h{$_}++ foreach @chars;
print "True" if $h{k} >= 2 || $h{r} == 2 && $h{w} == 2 || $h{k} == 1 && $h{r} == 1 && $h{w} == 2;

View full thread regular expressions