Home
last modified time | relevance | path

Searched refs:regex (Results 1 – 14 of 14) sorted by relevance

/dokuwiki/_test/tests/inc/parser/
H A Dlexer.test.php19 $regex = new ParallelRegex(false);
20 $this->assertFalse($regex->apply("Hello", $match));
24 $regex = new ParallelRegex(false);
25 $regex->addPattern(".*");
26 $this->assertTrue($regex->apply("", $match));
30 $regex = new ParallelRegex(false);
31 $regex->addPattern(".*");
32 $this->assertTrue($regex->apply("Hello", $match));
36 $regex = new ParallelRegex(true);
37 $regex->addPattern("abc");
[all …]
/dokuwiki/inc/Parsing/Lexer/
H A DParallelRegex.php25 protected $regex; variable in dokuwiki\\Parsing\\Lexer\\ParallelRegex
56 $this->regex = null;
143 if ($this->regex == null) {
188 … $this->regex = "/" . implode("|", $this->patterns) . "/" . $this->getPerlMatchingFlags();
190 return $this->regex;
/dokuwiki/lib/plugins/config/core/Setting/
H A DSettingRegex.php23 $regex = $this->delimiter . $input . $this->delimiter . $this->pregflags;
25 @preg_match($regex, 'testdata');
/dokuwiki/inc/
H A Dio.php336 * @param bool $regex use regexp?
344 function io_replaceInFile($file, $oldline, $newline, $regex = false, $maxlines = 0) argument
367 $pattern = $regex ? $oldline : '/^' . preg_quote($oldline, '/') . '$/';
368 $replace = $regex ? $newline : addcslashes($newline, '\$');
412 * @param bool $regex use regexp?
417 function io_deleteFromFile($file, $badline, $regex = false) argument
419 return io_replaceInFile($file, $badline, '', $regex, 0);
H A Dhtml.php303 $regex = implode('|', $phrases);
305 if ($regex === '') return $html;
306 if (!Clean::isUtf8($regex)) return $html;
308 return @preg_replace_callback("/((<[^>]*)|$regex)/ui", function ($match) {
H A Dmedia.php468 $regex = implode('|', $types);
471 if (!preg_match('/\.(' . $regex . ')$/i', $fn)) {
/dokuwiki/vendor/geshi/geshi/
H A DBUGS24 - Perl/Javascript /.../ regex syntax is only supported basically and there's no
H A DCHANGELOG720 regex support in PHP (Tim Starling)
723 - Changed comment regex in bash to prevent malformed XHTML (rv1971)
839 - Removed unnecessary regex style index from blitzbasic
/dokuwiki/lib/exe/
H A Dcss.php474 $regex = '/^(' . implode('|', $basedir) . ')/';
475 $this->relative_path = preg_replace($regex, '', dirname($this->filepath));
/dokuwiki/inc/Remote/
H A DApiCore.php327 $regex = [];
328 $data = ft_pageSearch($query, $regex);
335 $snippet = ft_snippet($id, $regex);
/dokuwiki/inc/Ui/
H A DPageDiff.php548 $regex = <<< REGEX
556 return preg_replace('<' . $regex . '>xu', '\0<wbr>', $match[0]);
/dokuwiki/vendor/splitbrain/lesserphp/src/
H A DParser.php1340 protected function match($regex, &$out, $eatWhitespace = null) argument
1344 $r = '/' . $regex . ($eatWhitespace && !$this->writeComments ? '\s*' : '') . '/Ais';
1374 protected function peek($regex, &$out = null, $from = null) argument
1377 $r = '/' . $regex . '/Ais';
/dokuwiki/_test/core/
H A DphpQuery-onefile.php4692 foreach($regexes as $regex)
4693 while (preg_match($regex, $php, $matches)) {
4695 $regex,
4705 $regex = '@(^|>[^<]*)+?(<\?php(.*?)(\?>))@s';
4708 $php = preg_replace($regex, '\\1<php><!-- \\3 --></php>', $php);
4743 foreach($regexes as $regex)
4744 while (preg_match($regex, $content))
4746 $regex,
/dokuwiki/vendor/simplepie/simplepie/
H A DCHANGELOG.md41 - Parse\Date: Clean up regex structure by @jtojnar in [#765](https://github.com/simplepie/simplepie…
217 * Switched from regex to xpath for microformats discovery. [#536](https://github.com/simplepie/simp…