Test, validate and match regular expressions
This regular expression matches positive or negative integers and floating-point numbers, where the decimal point must be followed by at least one digit. It also matches partial inputs like an empty string or a standalone minus sign, making it highly suitable for real-time input validation in web forms.