I need a (Java) regular expression that will match:
XXXX.X
Where X is any number, only one number after the decimal point.
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.
Try
^\d{4}\.\d$if you want the entire string to match, remove the^and/or$if you want it to find matches within a larger string.If there can be any number of integers before the
.use\d+instead of\d{4}to match one or more, or\d*to match zero or more (the string".5"would match\d*\.\d).