I want to write a regex such that it matches all binary strings of length zero or more. The requirement is that the odd position must be 1 and even position can be either 1 or 0.
I am not sure how to control positions with regex?
My idea is something like ([1]+[01]*)+
Sample:
10101
11111
1come in an even position too?