title: How create regexp for reapeted pattern?
body: <p>In string available only 3 parameters :
  C1 - number is only 0 or 1
  R1 - number is only 0 or 1
  A</p>
  <p>String Example
  &quot;C1-R1-C0-C0-A-R0-R1-R1-A-C1&quot;</p>
  <p>Smth like this /[CRA]\d-/gi only for each with separetor</p>
  <p>OR better use split and map methods?</p>