Test, validate and match regular expressions
This regex validates strings consisting only of 'a' and 'b' characters, ensuring the count of 'a' is even and the count of 'b' is odd. It uses two positive lookaheads to check parity conditions without consuming characters, then matches the full string with [ab]*. Ideal for formal language exercises, input validation, or automata simulations.