I want to make a regex that valid this format and capture groups for A and B (if B is present).
the formula: (((group A) and not (group B)))
group