Test, validate and match regular expressions
This regex matches numbered variable assignment statements containing either a single value or a simple binary arithmetic expression (addition, subtraction, multiplication, or division). It captures the assigned variable name and allows optional negative signs for the operands. It is useful for parsing simple custom scripting languages or basic code snippets.