Regular expression how to check for number from 1 to 12?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
12 views
Hello.

is: /^[1-9]$/ but I need to check that the figure one and it is from 1 to 12. How to do that?)

Thank you!
by | 12 views

2 Answers

0 like 0 dislike
by
0 like 0 dislike
Sir, to verify the range of the number using a regular expression, a kind of idea. Why not use if?
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
0 comments
35,405 users