Lines Matching defs:pattern
41 * Adds a pattern with an optional label.
43 * @param mixed $pattern Perl style regex. Must be UTF-8
51 public function addPattern($pattern, $label = true)
54 $this->patterns[$count] = $pattern;
147 * decompose the input pattern into "(", "(?", ")",
157 $pattern = "";
168 $pattern .= '\(';
173 else $pattern .= '\\';
174 $pattern .= ')';
178 $pattern .= '(?';
182 $pattern .= $elt;
183 else $pattern .= str_replace('/', '\/', $elt);
186 $this->patterns[$i] = "($pattern)";