title: Regex - find anagrams and sub-anagrams
body: <p>I have a pool of characters and I want to match all the words which are anagrams of those chars or of a subset of those chars using a regular expression.</p>
  
  <p>Example: given the string "ACNE" the regex should give me these results:</p>
  
  <ul>
  <li>ACNE  [T]</li>
  <li>CENA  [T]</li>
  <li>CAN   [T]</li>
  <li>CAAN  [F]</li>
  <li>CANEN [F]</li>
  </ul>
  
  <p>I've tried this solution <code>/b[acne]{1,4}/b</code> but it accepts multiple repetitions of single chars.
  What can I do to take each char at most one time?</p>