Fixed excessive pattern when range ends with 9.
Enhanced to support negative values for ranges.
Merge pull request #2 from mbayadinov/master

Fixed excessive pattern and enhanced to support negative ranges