Home
last modified time | relevance | path

Searched refs:pattern (Results 1 – 25 of 26) sorted by relevance

12

/dokuwiki/inc/Parsing/ParserMode/
H A DWordblock.php13 protected $pattern = ''; variable in dokuwiki\\Parsing\\ParserMode\\Wordblock
28 if (count($this->badwords) == 0 || $this->pattern != '') {
34 $this->pattern .= $sep.'(?<=\b)(?i)'. Lexer::escape($badword).'(?-i)(?=\b)';
42 if (strlen($this->pattern) > 0) {
43 $this->Lexer->addSpecialPattern($this->pattern, $mode, 'wordblock');
H A DSmiley.php10 protected $pattern = ''; variable in dokuwiki\\Parsing\\ParserMode\\Smiley
24 if (!count($this->smileys) || $this->pattern != '') return;
28 $this->pattern .= $sep.'(?<=\W|^)'. Lexer::escape($smiley).'(?=\W|$)';
38 if (strlen($this->pattern) > 0) {
39 $this->Lexer->addSpecialPattern($this->pattern, $mode, 'smiley');
H A DEntity.php11 protected $pattern = ''; variable in dokuwiki\\Parsing\\ParserMode\\Entity
26 if (!count($this->entities) || $this->pattern != '') return;
30 $this->pattern .= $sep. Lexer::escape($entity);
40 if (strlen($this->pattern) > 0) {
41 $this->Lexer->addSpecialPattern($this->pattern, $mode, 'entity');
H A DWindowssharelink.php8 protected $pattern; variable in dokuwiki\\Parsing\\ParserMode\\Windowssharelink
13 $this->pattern = "\\\\\\\\\w+?(?:\\\\[\w\-$]+)+";
20 $this->pattern,
H A DFilelink.php8 protected $pattern; variable in dokuwiki\\Parsing\\ParserMode\\Filelink
20 $this->pattern = '\b(?i)file(?-i)://['.$any.']+?['.
28 $this->pattern,
H A DAcronym.php9 protected $pattern = ''; variable in dokuwiki\\Parsing\\ParserMode\\Acronym
29 $this->pattern = '(?<=^|'.$bound.')(?:'.join('|', $acronyms).')(?='.$bound.')';
37 if (strlen($this->pattern) > 0) {
38 $this->Lexer->addSpecialPattern($this->pattern, $mode, 'acronym');
H A DExternallink.php36 foreach ($this->patterns as $pattern) {
37 $this->Lexer->addSpecialPattern($pattern, $mode, 'externallink');
/dokuwiki/inc/Parsing/Lexer/
H A DParallelRegex.php45 * @param mixed $pattern Perl style regex. Must be UTF-8
53 public function addPattern($pattern, $label = true) argument
56 $this->patterns[$count] = $pattern;
159 $pattern = "";
170 $pattern .= '\(';
175 else $pattern .= '\\';
176 $pattern .= ')';
180 $pattern .= '(?';
184 $pattern .= $elt;
185 else $pattern .= str_replace('/', '\/', $elt);
[all …]
H A DLexer.php52 * @param string $pattern Perl style regex, but ( and )
58 public function addPattern($pattern, $mode = "accept") argument
63 $this->regexes[$mode]->addPattern($pattern);
71 * @param string $pattern Perl style regex, but ( and ) lose the usual meaning.
75 public function addEntryPattern($pattern, $mode, $new_mode) argument
80 $this->regexes[$mode]->addPattern($pattern, $new_mode);
86 * @param string $pattern Perl style regex, but ( and ) lose the usual meaning.
89 public function addExitPattern($pattern, $mode) argument
94 $this->regexes[$mode]->addPattern($pattern, "__exit");
107 public function addSpecialPattern($pattern, $mode, $special) argument
[all …]
/dokuwiki/lib/plugins/config/core/Setting/
H A DSettingPassword.php17 if($this->pattern && !preg_match($this->pattern, $input)) {
H A DSettingDirchoice.php21 if($this->pattern && !preg_match($this->pattern, $entry)) continue;
H A DSettingNumericopt.php10 protected $pattern = '/^(|[-]?[0-9]+(?:[-+*][0-9]+)*)$/'; variable in dokuwiki\\plugin\\config\\core\\Setting\\SettingNumericopt
H A DSettingArray.php51 if($this->pattern && !preg_match($this->pattern, $item)) {
H A DSetting.php24 protected $pattern = ''; variable in dokuwiki\\plugin\\config\\core\\Setting\\Setting
83 if($this->pattern && !preg_match($this->pattern, $input)) {
H A DSettingNumeric.php12 protected $pattern = '/^[-+]? *[0-9]+ *(?:[-+*] *[0-9]+ *)*$/'; variable in dokuwiki\\plugin\\config\\core\\Setting\\SettingNumeric
H A DSettingMulticheckbox.php25 if($this->pattern && !preg_match($this->pattern, $input)) {
/dokuwiki/lib/plugins/authplain/
H A Dauth.php18 protected $pattern = array(); variable in auth_plugin_authplain
250 $pattern = '/^('.join('|', $deleted).'):/';
251 if (!io_deleteFromFile($config_cascade['plainauth.users']['default'], $pattern, true)) {
473 foreach ($this->pattern as $item => $pattern) {
475 if (!preg_match($pattern, $user)) return false;
477 if (!count(preg_grep($pattern, $info['grps']))) return false;
479 if (!preg_match($pattern, $info[$item])) return false;
492 $this->pattern = array();
493 foreach ($filter as $item => $pattern) {
494 … $this->pattern[$item] = '/'.str_replace('/', '\/', $pattern).'/i'; // allow regex characters
/dokuwiki/lib/plugins/config/core/
H A DConfigParser.php40 …$pattern = '/\$' . $this->varname . '\[[\'"]([^=]+)[\'"]\] ?= ?(.*?);(?=[^;]*(?:\$' . $this->varna…
42 preg_match_all($pattern, $contents, $matches, PREG_SET_ORDER);
/dokuwiki/lib/plugins/authldap/
H A Dauth.php24 protected $pattern = null; variable in auth_plugin_authldap
481 foreach ($this->pattern as $item => $pattern) {
483 if (!preg_match($pattern, $user)) return false;
485 if (!count(preg_grep($pattern, $info['grps']))) return false;
487 if (!preg_match($pattern, $info[$item])) return false;
503 $this->pattern = array();
504 foreach ($filter as $item => $pattern) {
505 … $this->pattern[$item] = '/' . str_replace('/', '\/', $pattern) . '/i'; // allow regex characters
/dokuwiki/lib/plugins/authad/
H A Dauth.php67 protected $pattern = array(); variable in auth_plugin_authad
762 foreach ($this->pattern as $item => $pattern) {
764 if (!preg_match($pattern, $user)) return false;
766 if (!count(preg_grep($pattern, $info['grps']))) return false;
768 if (!preg_match($pattern, $info[$item])) return false;
783 $this->pattern = array();
784 foreach ($filter as $item => $pattern) {
785 … $this->pattern[$item] = '/'.str_replace('/', '\/', $pattern).'/i'; // allow regex characters
/dokuwiki/inc/
H A Dio.php335 $pattern = $regex ? $oldline : '/^'.preg_quote($oldline,'/').'$/';
345 $lines[$i] = preg_replace($pattern, $replace, $line, -1, $matched);
349 $lines = preg_grep($pattern, $lines, PREG_GREP_INVERT);
355 $lines = preg_replace($pattern, $replace, $lines);
707 * @param string $pattern PCRE pattern
712 function io_grep($file,$pattern,$max=0,$backref=false){ argument
724 if(preg_match($pattern,$line,$match)){
H A Dmedia.php1544 $pattern = '/'.$quoted.'/i';
1548 array('showmsg'=>false,'pattern'=>$pattern),
2335 $pattern=mediaFN($baseid).'.*.*.vtt';
2336 $list=glob($pattern);
/dokuwiki/inc/Utf8/
H A DPhpString.php337 …$pattern = '/(^|([\x0c\x09\x0b\x0a\x0d\x20]+))([^\x0c\x09\x0b\x0a\x0d\x20]{1})[^\x0c\x09\x0b\x0a\x…
340 $pattern,
/dokuwiki/vendor/marcusschwarz/lesserphp/
H A Dlessc.inc.php2806 $pattern = implode("|",
2808 $pattern = '/^(-[a-z-]+-)?(' . $pattern . ')$/i';
2810 return preg_match($pattern, $dirname);
2878 foreach (self::$supressDivisionProps as $pattern) {
2879 if (preg_match($pattern, $this->env->currentProperty)) {
/dokuwiki/data/pages/wiki/
H A Dsyntax.txt268 … done to produce any kind of HTML, it just needs to be added to the [[doku>entities|pattern file]].
270 There are three exceptions which do not come from that pattern file: multiplication entity (640x480…

12