May someone please put some light on this regex…It looks so difficult to understand…
/^[0-9]{1,}((\.){1}[0-9]{1,}){0,1}$/.test(value)
Value is what I send from the text box to validate…
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.
Or even shorter:
i.e. a series of digits optionally followed by a period character and a series of digits.
So anything like
will match.