title: Splitting string that's really an array?
body: <p>I'm trying to split this string
  <code>var raw = &quot;GMYTEOR[RHE5DO,SG[A5D[CN[I,Q],EM[I,Q],M],E5D[C[NY,OA],O,Q],M5DC[MY,NA],U5DQ,Y5DCOA]]&quot;</code></p>
  <p>I manually split this out into the following patterns:</p>
  <pre><code>const valid_reults = [
      'GMYTEORRHE5DO',
      'GMYTEORSGA5DCNI',
      'GMYTEORSGA5DCNQ',
      'GMYTEORSGA5DEMI',
      'GMYTEORSGA5DEMQ',
      'GMYTEORSGA5DM',
      'GMYTEORSGE5DCNY',
      'GMYTEORSGE5DCOA',
      'GMYTEORSGE5DO',
      'GMYTEORSGE5DQ',
      'GMYTEORSGM5DCMY',
      'GMYTEORSGM5DCNA',
      'GMYTEORSGU5DQ',
      'GMYTEORSGY5DCOA',
  ]
  </code></pre>
  <p>I tried parsing it with JSON.parse but that didnt work for obvious reasons.</p>
  <p>I also tried splitting the string by the brackets but that was a really bad idea and I couldn't get it working after 20-30 mins of trying.</p>
  <p>What's the best way to convert that bizarre string format into a formatted array as shown in valid_results?</p>