[#14] Remove dependency on regex module.