updated check with preg_match