Regular expression for strings with an even number of zeroes and ones

Posted by Kevinniceguy on Stack Overflow See other posts from Stack Overflow or by Kevinniceguy
Published on 2010-04-27T22:08:45Z Indexed on 2010/04/27 22:23 UTC
Read the original article Hit count: 512

Filed under:

What is a regular expression for strings of 0 and 1 with an even number of zeros and an even number of ones?

I have something like (1*01*01*)*(0*10*10*)*.

Does it look good?

© Stack Overflow or respective owner

Related posts about regex