I eventually ended up with the following:
my $unique = qr/^(.)(?!\1) (.)(?!\1|\2) (.)(?!\1|\2|\3) .$/x;
larryk perl -le "s,,reverse killer,e,y,rifle,lycra,,print"
In reply to Re^2: How to use a negative backreference in regex?
by larryk
in thread How to use a negative backreference in regex?
by larryk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |