Need to validate an input using Regular expression
- It should accept only digit
- Min and max should be dynamic
Thanks for your help in advance
My code is
min=3, max=10
MyRegex is
/^(\d{min, max})$/
Need to validate an input using Regular expression
Thanks for your help in advance
My code is
min=3, max=10
MyRegex is
/^(\d{min, max})$/
I'd use a template string: