00001 <?php 00002 00016 // $Id: FormValidatorAlphaNum.inc.php,v 1.9 2008/07/01 01:16:09 asmecher Exp $ 00017 00018 00019 import('form.validation.FormValidatorRegExp'); 00020 00021 class FormValidatorAlphaNum extends FormValidatorRegExp { 00022 00027 function FormValidatorAlphaNum(&$form, $field, $type, $message) { 00028 parent::FormValidatorRegExp($form, $field, $type, $message, 00029 '/^[A-Z0-9]+([\-_][A-Z0-9]+)*$/i' 00030 ); 00031 } 00032 00033 } 00034 00035 ?>
1.5.6