Use regex.test() if match isn't needed