fixed wrong assumption in preg_match