* @package tao */ class tao_helpers_form_validators_FileName extends tao_helpers_form_validators_Regex { /** * (non-PHPdoc) * @see tao_helpers_form_validators_Regex::setOptions() */ public function setOptions(array $options) { $options['format'] = "/^[a-zA-Z0-9_\-]*\.[a-zA-Z0-9]*$/"; parent::setOptions($options); } }