Is is possible in regex to allow float numbers between 0 to 2? : I need to validate text input through regex expression. Text input only accept float numbers between 0 and 2 else it through validation error. Currently I'm using this expression 

> ^\d+\.\d{0,2}$

But it only validate on numbers (1.0,2.0...). Following are the valid/invalid input for text. 

**Valid:** 

- 0
- 1
- 2
- 0.1
- 1.9
- 2.0
- 0.01
- 1.09
- 1.009

**Invalid:**

- -1
- 3
- 2.1
- 2.01
- 2.001