in reply to Re: Regex (lookahead) Confusionin thread Regex (lookahead) Confusion
$string =~ /^(?:([smtwhfa])(?!.*\1))+$/ [download]