my question is, how to define a regular expression, if a range is between -50 to 50.
I have used this regular expression:
'\\b(-?[1-9]|-?[1-4][0-9]|-?50|[0-9])\\b'
but it can only check from 0 to 50
Why I use this pattern, because I use this pattern for input field such like this:
<inpit [pattern]="regex">
this pattern can only accept regex string
any solutions??