Removed the regex module dependency.