put preg_match to silent code block if  is not a regex