<p>I've got the following url route and i'm wanting to make sure that a segment of the route will only accept numbers. as such, i can provide some regex which checks the word.</p>

<p>/page/{currentPage}</p>

<p>so.. can someone give me a regex which matches when the word is a number (any int) greater than 0 (ie. 1 &lt;-> int.max).</p>

If you want it greater than 0, use this regex:
```
```
/([1-9][0-9]*)/
```
```
This'll work as long as the number doesn't have leading zeros (like '03').
However, I recommend just using a simple
```
[0-9]+
```
regex, and validating the number in your actual site code.