Build, test, and debug regular expressions
This regex matches terms in a polynomial or linear mathematical expression, capturing the coefficient and exponent of x. It handles formats like '3x^2', '-0.5x^(1.5)', 'x^+2', or even 'x'. It's useful for parsing algebraic expressions, extracting terms for computation, or validating mathematical input in educational applications.