title: Regular expression listing all possibilities
body: <p>Given a regular expression, how can I list all possible matches?
  For example: AB[CD]1234, I want it to return a list like:
  ABC1234
  ABD1234</p>
  
  <p>I searched the web, but couldn't find anything.</p>