Test, validate and match regular expressions
Matches binomial expressions in the form (ax±b)^n, such as (2x+3)^2 or (-x-5)^3. It captures three groups: the first term with optional sign, numeric coefficient, and variable (e.g., '2x'), the second term with its sign and number (e.g., '+3'), and the exponent (e.g., '2'). With global and multiline flags, it finds multiple expressions across lines, making it useful for parsing algebraic formulas in math education tools or binomial theorem expansion utilities.