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