(by Abigail)perl -wle 'print "Prime" if (1 x shift) !~ /^1?$|^(11+?)\1+$/'
In reply to Re^2: Using regex to match double letters, and only double letters
by ysth
in thread Using regex to match double letters, and only double letters
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |