I'm trying to split a string of binary digits in a specific way
Let's say this is my string 100011001110010101110
I want to split the string at every 0 before a 1
So the string above after split becomes
1000 1100 11100 10 10 1110
I used the Regex pattern /(1+0+)/g which splits the string properly, but it misses some groups.
Here is the c# code
Regex.Split(stringToSplit, @"(1+0+)");
Please what am i getting wrong.
EDIT: I failed to mention that I am certain a 1 will always precede a 0
Thanks in advance.