Lines Matching refs:pattern
58 list($pattern, $names) = $this->regexCaptures[$name];
59 $result = preg_match("/^{$pattern}$/", $arguments[0], $match);
154 * Returns an object describing the pattern fragments.
373 // convert each union into a pattern
386 foreach($patterns as $pattern) {
390 'rhs'=>$pattern
607 // filter pattern
768 * Returns the regex pattern used by the 'short syntax' for projection. This methods can
769 * be used to get a dokuwiki-lexer-safe regex to embed into your own syntax pattern.
771 * @param captions boolean Whether the pattern should include caption matching (defaults to true)
954 * - pattern: regular expression that defines all possible values.
955 * - pattern_desc: description used for errors when a pattern is specified.
962 * Either 'choices' or 'pattern' must be set (not both), all other values are optional.
973 * 'pattern' => '/^[0-9]+$/',
1081 } else if (isset($p['pattern'])) { // Check whether the given property values match the pattern
1082 $incorrect = array_filter($values, function($v) use ($p) { return !preg_match($p['pattern'], $v); });
1088 $this->emitError($region, 'error_property_pattern', hsc($group), hsc($variable), hsc($v), hsc($p['pattern']));