Regular expression to allow for number values between 1-3 digits?
RewriteRule ^gallery/[0-9][0-9][0-9]/$ index.php?gallery_id=$1
It allows for any number that is three digits in length. I do not know how to allow for less than three digits as well (or more than three for that matter).
Solution 1:
You want to do something along the lines of
[0-9]{1,3}
There are some excellent examples here. Scroll down to nearly the bottom of the page, there are examples of how the various range selections (not the right term for them) work.