4
Answers

Regex to accept only 2 places after .

Ask a question
Chaitanya

Chaitanya

13y
1.4k
1

Hi all i need all these possible cases to be valid

123

123.1

123.12

I tried this ^[0-9]*\.[0-9]{2}$ or ^[0-9]*\.[0-9][0-9]$ but does not works can any one help me out. And also before . it should accept a maximum of 6 numeric values


Answers (4)