0

So i am trying to write a regular expression that will accept any digits between 0 and 100. What I tried is \d+{0-100}. but that didn't work. I am not sure if the syntax is wrong or there is another problem since I am fairly new to re. Thanks for your help

jeabesli
  • 83
  • 1
  • 1
  • 7

1 Answers1

0

Check this one \b(\d{1,2}|100)\b This will match any number with at least 2 numbers or 100 only.

b3n1Am1n
  • 47
  • 4