Replace non-existent _.isInteger function with regex match