I want to check an input value to match one or two digit numbers separated by spaces. No alphanumeric characters only numbers and spaces. The correct string looks like this:
1 3 12 34 55 67 3
It can contain one number or multiple one or two digit numbers separated by space. How can I check with regex this string to be valid?
This is what I did so far :
\d{1,2}\s.test(the_string)
Thank you!