@kadin
To regex negative numbers and dashes, you can use the following regular expression pattern:
1
|
^[-]?d+$ |
Explanation:
This pattern will match both negative numbers (e.g. -1, -100) and positive numbers (e.g. 1, 100) with an optional negative sign at the beginning.