Lines Matching defs:pattern
20 /** @var array filter pattern */
21 protected $pattern = [];
257 $pattern = '/^(' . implode('|', $deleted) . '):/';
258 if (!io_deleteFromFile($config_cascade['plainauth.users']['default'], $pattern, true)) {
302 * @param array $filter array of field/pattern pairs
465 foreach ($this->pattern as $item => $pattern) {
467 if (!preg_match($pattern, $user)) return false;
469 if (!count(preg_grep($pattern, $info['grps']))) return false;
470 } elseif (!preg_match($pattern, $info[$item])) {
478 * construct a filter pattern
484 $this->pattern = [];
485 foreach ($filter as $item => $pattern) {
486 $this->pattern[$item] = '/' . str_replace('/', '\/', $pattern) . '/i'; // allow regex characters