while (<DATA>) { chomp; my $s = $_; @matches = $s =~ /(\w)\1/g; if (scalar @matches == 3) { print "$s: three two-letter repeats."; } } __DATA__ hullaballoo chubbalicious
In reply to Re: Repeated character in regex
by tphyahoo
in thread Repeated character in regex
by typhoonmentat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |