Like I already said a few times, this is not the right place we should do this check. This should be done deeper down inside the regular expression match handling.