Test for integer with regex