Home
last modified time | relevance | path

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

/dokuwiki/_test/tests/Parsing/Lexer/
H A DParallelRegexTest.php11 $regex = new ParallelRegex(false);
12 $this->assertFalse($regex->split("Hello", $split));
17 $regex = new ParallelRegex(false);
18 $regex->addPattern(".*");
19 $this->assertTrue($regex->split("", $split));
25 $regex = new ParallelRegex(false);
26 $regex->addPattern(".*");
27 $this->assertTrue($regex->split("Hello", $split));
33 $regex = new ParallelRegex(true);
34 $regex->addPattern("abc");
[all …]
/dokuwiki/inc/Parsing/Lexer/
H A DParallelRegex.php25 protected $regex; variable in dokuwiki\\Parsing\\Lexer\\ParallelRegex
56 $this->regex = null;
114 if ($this->regex == null) {
159 … $this->regex = "/" . implode("|", $this->patterns) . "/" . $this->getPerlMatchingFlags();
161 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.php386 * @param bool $regex use regexp?
394 function io_replaceInFile($file, $oldline, $newline, $regex = false, $maxlines = 0) argument
417 $pattern = $regex ? $oldline : '/^' . preg_quote($oldline, '/') . '$/';
418 $replace = $regex ? $newline : addcslashes($newline, '\$');
462 * @param bool $regex use regexp?
467 function io_deleteFromFile($file, $badline, $regex = false) argument
469 return io_replaceInFile($file, $badline, '', $regex, 0);
H A Dhtml.php306 $regex = implode('|', $phrases);
308 if ($regex === '') return $html;
309 if (!Clean::isUtf8($regex)) return $html;
311 return @preg_replace_callback("/((<[^>]*)|$regex)/ui", function ($match) {
H A Dmedia.php471 $regex = implode('|', $types);
474 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.php330 $regex = [];
332 $data = $FulltextSearch->pageSearch($query, $regex);
339 $snippet = $FulltextSearch->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.md93 - `SimplePie\Parse\Date::date_w3cdtf()`: Clean up regex structure (by @jtojnar in [#765](https://gi…
269 * Switched from regex to xpath for microformats discovery. [#536](https://github.com/simplepie/simp…