DB<111> print $_ !~ /(\d).*\1/ ? "$_ ok\n" :"$_ has <$1>\n" for qw/0 +12 0102 01233/ 012 ok 0102 has <0> 01233 has <3>
Cheers Rolf
In reply to Re: regexp golf - homework
by LanX
in thread regexp golf - homework
by Boots111
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |