I'm having trouble constructing a regular expression that is not empty and ends with an even number of zeros (ex. 10110010000). I was thinking that I could do something like:
(1* 0* 1*)*(00)+
since the beginning digits can be any number of ones or zeros. The problem with this one is that I think I could input 000 or 100100000 and this would work, even though those end in an odd number of zeros. I'm just having trouble eliminating the possibility of this beginning section ending in an odd number of zeros, which would then affect the total number of zeros that the string ends in.