Updated integer regexp to allow for negatives

Found this while looking for TODOs

Implemented [this](http://stackoverflow.com/questions/16774064/regular-expression-for-whole-numbers-and-integers) pattern instead.  Added a unit test and it seems to be working.
Can you explain what the regular expression is doing? Why not just `[-+]?\d+`?