added user/groupNameList

This commit is contained in:
Roland Gruber 2004-09-27 16:51:17 +00:00
parent 88d104d444
commit 7c49bb5aad
1 changed files with 4 additions and 0 deletions

View File

@ -434,6 +434,10 @@ function get_preg($argument, $regexp) {
case 'username': // first character must be a letter. All letters, numbers, space and ._- are allowed characters
$pregexpr = '/^[[:alpha:]]([[:alnum:]\\.\\ \\_-])*$/';
break;
case 'usernameList': // comma separated list of user names
case 'groupnameList': // comma separated list of group names
$pregexpr = '[[:alpha:]]([[:alnum:]\\.\\ \\_-])(,[[:alpha:]]([[:alnum:]\\.\\ \\_-]))*';
break;
case 'hostname': // first character must be letter, last must be $. Only normal letters, numbers and ._- are allowed
$pregexpr = '/^[a-zA-Z]([a-zA-Z0-9\\.\\_-])*\\$$/';
break;