in reply to REgular expression to check the string that allows "a","b" and "c" to occur only once in any order.
the RE above checks if one of [abc] is repeatedprint "ok!\n" unless /([abc]).*\1/;
if you want to declare "abcz" wrong too, just:
which also check if a bad char is present.print "ok!\n" unless /(([abc]).*\2|[^abc])/;
Oha
|
|---|