Is it possible to construct a PCRE-style regular expression that will only match each letter in a list only once?
For example, if you have the letters \"lrsa\" and y
You can use negative look-ahead:
^(?!.*?(.).*?\1)[lrsa]*m[lrsa]*$
will do what you want