<p>I am after a regular expression that validates a percentage from 0 100 and allows two decimal places. </p>

<p>Does anyone know how to do this or know of good web site that has example of common regular expressions used for client side validation in javascript?</p>

<p>@Tom - Thanks for the questions. Ideally there would be no leading 0's or other trailing characters.</p>

<p>Thanks to all those who have replied so far. I have found the comments really interesting.</p>

```
(100|[0-9]{1,2})(\.[0-9]{1,2})?
```
That should be the regex you want. I suggest you to read Mastering Regular Expression and download RegexBuddy or The Regex Coach.