title: Regular expression, calculate something like CRC in it with validations
body: <p>I have an array of bytes, I need to check if it starts with a specific number 0, terminates with 9 and in-between could be anything numbers, but after 9, I get the sum of the numbers.</p>
  
  <pre><code>e.g test[] = { 0, 1, 4, 5, 9, 10 };
  test[] = { 0, 3, 2, 9, 6, 0, 4, 2, 9, 6 }; - in this there are two sets
  </code></pre>
  
  <p>Is there way using Regular Expression to find this?</p>