Use regex for e.touches replacement

Was not firing globally before, this fixes tests.