function _ruleCheckFileName($elementValue, $regex)
    {
        if (!HTML_QuickForm_file::_ruleIsUploadedFile($elementValue)) {
            return true;
        }
        return preg_match($regex, $elementValue['name']);
    }
function _ruleCheckFileName($elementValue, $regex)
    {
        if (!HTML_QuickForm_file::_ruleIsUploadedFile($elementValue)) {
            return true;
        }
        return preg_match($regex, $elementValue['name']);
    }
function _ruleCheckFileName ( $ elementValue , $ regex ) { if ( ! HTML_QuickForm_file :: _ruleIsUploadedFile ( $ elementValue ) ) { return true ; } return preg_match ( $ regex , $ elementValue [ 'name' ] ) ; }
Checks if the given element contains an uploaded file of the filename regex

@param     array     Uploaded file info (from $_FILES)
@param     string    Regular expression
@access    private
@return    bool      true if name matches regex, false otherwise
Checks if the given element contains an uploaded file of the filename regex