Given two ways of doing something, regex is almost always slower.