I am using following regex to match the range between 1 and 9999.9 and it works good!
"^([1-9]|[1-9]\\d|[1-9]\\d\\d|[1-9]\\d\\d\\d)(\\.\\d)?$"
But, I want the range to start from 0.5 through 9999.9!
How can I do this! Any suggestion!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Easy, and you can also simplify the regex you already have: