I want to generate a regular expression by using only + (or, union), * (0 or more), and (^+ 1 or more) operations.
The language contains only 0 and 1. The problem is to generate a regular expression so that the words generated will contain 0(s) and the number of zeros will not be a multiple of 3. I generated the regular expression for the other case, i.e., the number of zeros is a multiple of 3 which is
1* + (1* 0 1* 0 1* 0 1*)*
How can I do the opposite of this?