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
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…