I have managed to figure out the regular expression for even number of b's and odd number of a's through (bb|aa|(ba|ab)(bb|aa)*(ab|ba))*(a|(ba|ab)(aa|bb)*b)
What if I need the following sequence:
any idea?
Try this (zero is an even number):
^(bb)*ca(aa)*$