Reg-Ex decimal number with two places

Can someone help me out with reg-ex for a decimal number with two places. it must have two places after the .

So

2.1 – Fail

2 – fail

786 – fail


786.00 – pass

2.00 pass

10.10- pass


Source: regex

Leave a Reply