0

I have a number that is not accepted to be negative or empty/null or number and not be decimal and between 1 to 40

example:

0 not match -1 not match 1 match 41 not match 1.1 not match null not match

this code is not Work

\b(-\d+?0?[1-9]|[1-3][0-9]|4[0])\b
Lelio Faieta
  • 6,457
  • 7
  • 40
  • 74

0 Answers0