I have to validate the user input of an input field (type number) with a regex.

I reveice the following dynamic values:

* minimum: i'm already validating that with angular
* maximum: i'm already validating that with angular
* increment: <- my problem

An example:
minimum: 10; maximum: 100; increment: 10

Allowed user input with the dynamic increment of 10 should be:

10 - 20 - 30 - 40 - 50 - 60 - 70 - 80 - 90 - 100

Other examples:

* minimum: 0; maximum: 2000; increment: 100
* minimum: 1; maximum: 3.4; increment: 0.2

I have tried several regex expressions, but not even one worked with the dynamic values (different number length/decimal). Maybe it's easier to have one with numbers and one for numbers with decimal.

Thank you for your help!