Home
last modified time | relevance | path

Searched refs:regex (Results 1 - 9 of 9) sorted by relevance

/dokuwiki/inc/Parsing/Lexer/
H A DParallelRegex.php23 /** @var string the compound regex matching all patterns */
24 protected $regex; variable
39 $this->regex = null; variable
45 * @param mixed $pattern Perl style regex. Must be UTF-8
50 * @param bool|string $label Label of regex to be returned
58 $this->regex = null; variable
138 * "or" operator. Caches the regex.
145 if ($this->regex == null) {
190 $this->regex = "/" . implode("|", $this->patterns) . "/" . $this->getPerlMatchingFlags(); variable
192 return $this->regex;
[all...]
/dokuwiki/lib/plugins/config/core/Setting/
H A DSettingRegex.php10 protected $delimiter = '/'; // regex delimiter to be used in testing input
11 protected $pregflags = 'ui'; // regex pattern modifiers to be used in testing input
21 // see if the regex compiles and runs (we don't check for effectiveness)
22 $regex = $this->delimiter . $input . $this->delimiter . $this->pregflags; variable
24 @preg_match($regex, 'testdata');
/dokuwiki/inc/
H A Dio.php291 * A regex that matches any part of the line will remove the entire line in this mode.
295 * or all lines if $maxlines is -1. If $regex is true then captures can be used in $newline.
309 * @param bool $regex use regexp?
313 function io_replaceInFile($file, $oldline, $newline, $regex=false, $maxlines=0) {
335 $pattern = $regex ? $oldline : '/^'.preg_quote($oldline,'/').'$/';
336 $replace = $regex ? $newline : addcslashes($newline, '\$');
381 * @param bool $regex use regexp?
384 function io_deleteFromFile($file,$badline,$regex=false){
385 return io_replaceInFile($file,$badline,null,$regex,0);
H A Dhtml.php266 $regex = join('|',$phrases); variable
268 if ($regex === '') return $html;
269 if (!\dokuwiki\Utf8\Clean::isUtf8($regex)) return $html;
271 $html = @preg_replace_callback("/((<[^>]*)|$regex)/ui", function ($match) {
H A Dmedia.php444 $regex = join('|',$types); variable
447 if(!preg_match('/\.('.$regex.')$/i',$fn)) {
/dokuwiki/lib/exe/
H A Dcss.php450 $regex = '/^('.join('|',$basedir).')/'; variable
451 $this->relative_path = preg_replace($regex, '', dirname($this->filepath));
/dokuwiki/inc/Remote/
H A DApiCore.php363 $regex = array(); variable
364 $data = ft_pageSearch($query, $regex);
373 $snippet = ft_snippet($id, $regex);
/dokuwiki/inc/Ui/
H A DDiff.php491 $regex = <<< REGEX variable
499 return preg_replace('<'.$regex.'>xu', '\0<wbr>', $match[0]);
/dokuwiki/vendor/marcusschwarz/lesserphp/
H A Dlessc.inc.php2529 // regex string to match any of the operators
3733 protected function match($regex, &$out, $eatWhitespace = null) {
3736 $r = '/'.$regex.($eatWhitespace && !$this->writeComments ? '\s*' : '').'/Ais';
3765 protected function peek($regex, &$out = null, $from=null) {
3767 $r = '/'.$regex.'/Ais';

Completed in 17 milliseconds