I have an array of bytes, I need to check whether it starts with a certain number 0, ends with 9, and there can be any numbers between them, but after 9 I get the sum of numbers.
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
Is there a way to use regex to find this?
Vivek source
share