original_string: function _ruleCheckFileName($elementValue, $regex)
      {
          if (!HTML_QuickForm_file::_ruleIsUploadedFile($elementValue)) {
              return true;
          }
          return preg_match($regex, $elementValue['name']);
      }
code: function _ruleCheckFileName($elementValue, $regex)
      {
          if (!HTML_QuickForm_file::_ruleIsUploadedFile($elementValue)) {
              return true;
          }
          return preg_match($regex, $elementValue['name']);
      }
code_tokens: function _ruleCheckFileName ( $ elementValue , $ regex ) { if ( ! HTML_QuickForm_file :: _ruleIsUploadedFile ( $ elementValue ) ) { return true ; } return preg_match ( $ regex , $ elementValue [ 'name' ] ) ; }
docstring: 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
docstring_tokens: Checks if the given element contains an uploaded file of the filename regex