How to find regular expression with equal number of 1 and 0. I am also interested in how you think such solution ?
example: should match : 1100, 00100111 , 01 . shouldn't match: 110 , 0, 11001.
I need regular expression which gives set of all such string .
If length of string in set given by regular expression in 2n
then number of 0s
should be equal to number 1s = n
.