Test, validate and match regular expressions
Matches a binary arithmetic operation between two integers, such as '3 + 4', '-10*2', or '2 ^ 8'. Named groups lhs, op, and rhs capture the left operand (allowing leading +/- signs), the operator (+, -, *, /, or ^), and the right operand, making it easy to parse and evaluate each expression. With global and multiline flags, it finds all such operations across multiple lines, ideal for simple calculator or expression-parsing tools.