I made this one for 0.1 to 8.9
^(?:8(?:\.0)?|[1-8](?:\.[0-9])?|0?\.[1-9])$
^ # Start of string
(?: # Either match...
8(?:\.0)? # 8.0 (or 8)
| # or
[1-8](?:\.[0-9])? # 1.0-8.9 (or 1-8)
| # or
0?\.[1-9] # 0.1-0.9 (or .1-.9)
) # End of alternation
$ # End of string
My question is that this works: **[1-8]**(?:\.[0-9])? # 1.0-8.9 (or 1-8)
how do i make it work for 1-29 because the below one does not work.
**[([1-9]|1[0-9]|2[0-9])]** : this is for `1-29`.
Doesn't work.
How do i do it?