Use boolean-based regex matcher if we are not using the resulting string