title: js regex to find multiple substrings in string
body: <p>I would like to find out if certain substrings exists in a string.</p>
  
  <p>I have tried this:</p>
  
  <pre><code>x = "AAABBBCCC"
  x.match(/(AAA|CCC)/)
  </code></pre>
  
  <p>However this resurns: <code>Array [ "AAA", "AAA" ]</code></p>
  
  <p>I would like to know exactly which substrings were present (e.g. <code>Array [ "AAA", "CCC" ]</code>)</p>
  
  <p>Is this possible?</p>