What is the regular expression to allow for numbers between -90.0 and +90.0? The numbers in between can be floating or whole numbers.
Share
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.
I don’t think you want to use a Regex for this. Use
Double.Parse()(orDouble.TryParse()) if your data is stored in a string, and then check the resulting value to ensure that it falls within the desired range. For example:If your value is already a
double, then it’s even easier — no parsing required.