Modified regex expression for ranges. Should also be able to set a range to/from 0.