Use regex to test for integers instead