So here is the problem:
A string is composed of only a, b, c, d.
The string is said to be balanced if:
- sum of occurence of a and c is even
- sum of occurence of b and d is even
I have to write a regular expression to check if the string is balanced string in java.
Please help me out.