Build, test, and debug regular expressions
This regex matches integer and floating-point numbers with optional signs, capturing the sign and numeric value separately. It specifically avoids matching numbers that are part of function calls or array indices by using negative lookaheads. Ideal for extracting numerical coefficients from polynomial expressions.