Home
last modified time | relevance | path

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

12

/dokuwiki/_test/tests/test/
H A Dedit_and_save.test.php41 $pattern = '/<form class="button btn_secedit".*>.*';
42 $pattern .= '<input type="hidden" name="hid" value="';
43 $pattern .= $idA[1];
44 $pattern .= '" \/>.*<\/form>/';
45 $result = preg_match($pattern, $content, $formA);
63 $pattern = '/<form id="dw__editform"[^>]*>.*';
64 $pattern .= '<input type="hidden" name="hid" value="';
65 $pattern .= $idA[1];
66 $pattern .= '" \/>.*<\/form>/';
67 $result = preg_match($pattern, $content, $editForm);
[all …]
/dokuwiki/inc/Parsing/Lexer/
H A DParallelRegex.php43 * @param mixed $pattern Perl style regex. Must be UTF-8
51 public function addPattern($pattern, $label = true) argument
54 $this->patterns[$count] = $pattern;
128 $pattern = "";
139 $pattern .= '\(';
144 else $pattern .= '\\';
145 $pattern .= ')';
149 $pattern .= '(?';
153 $pattern .= $elt;
154 else $pattern .= str_replace('/', '\/', $elt);
[all …]
H A DLexer.php58 * @param string $pattern Perl style regex, but ( and )
64 public function addPattern($pattern, $mode = "accept") argument
69 $this->regexes[$mode]->addPattern($pattern);
77 * @param string $pattern Perl style regex, but ( and ) lose the usual meaning.
81 public function addEntryPattern($pattern, $mode, $new_mode) argument
86 $this->regexes[$mode]->addPattern($pattern, $new_mode);
92 * @param string $pattern Perl style regex, but ( and ) lose the usual meaning.
95 public function addExitPattern($pattern, $mode) argument
100 $this->regexes[$mode]->addPattern($pattern, self::MODE_EXIT);
109 * @param string $pattern Perl style regex, but ( and ) lose the usual meaning.
[all …]
/dokuwiki/inc/Parsing/ParserMode/
H A DWordblock.php14 protected $pattern = ''; variable in dokuwiki\\Parsing\\ParserMode\\Wordblock
35 if (count($this->badwords) == 0 || $this->pattern != '') {
41 $this->pattern .= $sep . '(?<=\b)(?i)' . Lexer::escape($badword) . '(?-i)(?=\b)';
49 if ((string) $this->pattern !== '') {
50 $this->Lexer->addSpecialPattern($this->pattern, $mode, 'wordblock');
H A DSmiley.php11 protected $pattern = ''; variable in dokuwiki\\Parsing\\ParserMode\\Smiley
31 if (!count($this->smileys) || $this->pattern != '') return;
35 $this->pattern .= $sep . '(?<=\W|^)' . Lexer::escape($smiley) . '(?=\W|$)';
45 if ((string) $this->pattern !== '') {
46 $this->Lexer->addSpecialPattern($this->pattern, $mode, 'smiley');
H A DEntity.php11 protected $pattern = ''; variable in dokuwiki\\Parsing\\ParserMode\\Entity
31 if (!count($this->entities) || $this->pattern != '') return;
35 $this->pattern .= $sep . Lexer::escape($entity);
45 if ((string) $this->pattern !== '') {
46 $this->Lexer->addSpecialPattern($this->pattern, $mode, 'entity');
H A DWindowssharelink.php9 protected $pattern; variable in dokuwiki\\Parsing\\ParserMode\\Windowssharelink
20 $this->pattern = "\\\\\\\\\w+?(?:\\\\[\w\-$]+)+";
27 $this->pattern,
H A DFilelink.php9 protected $pattern; variable in dokuwiki\\Parsing\\ParserMode\\Filelink
26 $this->pattern = '\b(?i)file(?-i)://[' . $any . ']+?[' .
34 $this->pattern,
H A DAcronym.php11 protected $pattern = ''; variable in dokuwiki\\Parsing\\ParserMode\\Acronym
37 … $this->pattern = '(?<=^|' . $bound . ')(?:' . implode('|', $acronyms) . ')(?=' . $bound . ')';
45 if ((string) $this->pattern !== '') {
46 $this->Lexer->addSpecialPattern($this->pattern, $mode, 'acronym');
H A DExternallink.php44 foreach ($this->patterns as $pattern) {
45 $this->Lexer->addSpecialPattern($pattern, $mode, 'externallink');
/dokuwiki/vendor/php81_bc/strftime/src/
H A Dphp-8.1-strftime.php133 $pattern = '%'.$char;
134 if ($pattern == '%n') {
136 } elseif ($pattern == '%t') {
140 if (!isset($translation_table[$pattern])) {
141 … throw new InvalidArgumentException(sprintf('Format "%s" is unknown in time format', $pattern));
144 $replace = $translation_table[$pattern];
149 $result = $replace($timestamp, $pattern);
H A DIntlLocaleFormatter.php30 $pattern = '';
57 $pattern = $this->formats[$format];
73 …return (new IntlDateFormatter($this->locale, $date_type, $time_type, $tz, $calendar, $pattern))->f…
/dokuwiki/lib/plugins/config/core/Setting/
H A DSettingPassword.php18 if ($this->pattern && !preg_match($this->pattern, $input)) {
H A DSettingDirchoice.php22 if ($this->pattern && !preg_match($this->pattern, $entry)) continue;
H A DSettingNumericopt.php11 protected $pattern = '/^(|[-]?\d+(?:[-+*]\d+)*)$/'; variable in dokuwiki\\plugin\\config\\core\\Setting\\SettingNumericopt
H A DSettingArray.php54 if ($this->pattern && !preg_match($this->pattern, $item)) {
H A DSetting.php25 protected $pattern = ''; variable in dokuwiki\\plugin\\config\\core\\Setting\\Setting
87 if ($this->pattern && !preg_match($this->pattern, $input)) {
H A DSettingNumeric.php13 protected $pattern = '/^[-+]? *\d+ *(?:[-+*] *\d+ *)*$/'; variable in dokuwiki\\plugin\\config\\core\\Setting\\SettingNumeric
H A DSettingMulticheckbox.php26 if ($this->pattern && !preg_match($this->pattern, $input)) {
/dokuwiki/lib/plugins/authplain/
H A Dauth.php21 protected $pattern = []; variable in auth_plugin_authplain
260 $pattern = '/^(' . implode('|', $deleted) . '):/';
261 if (!io_deleteFromFile($config_cascade['plainauth.users']['default'], $pattern, true)) {
468 foreach ($this->pattern as $item => $pattern) {
470 if (!preg_match($pattern, $user)) return false;
472 if (!count(preg_grep($pattern, $info['grps']))) return false;
473 } elseif (!preg_match($pattern, $info[$item])) {
487 $this->pattern = [];
488 foreach ($filter as $item => $pattern) {
489 … $this->pattern[$item] = '/' . str_replace('/', '\/', $pattern) . '/i'; // allow regex characters
/dokuwiki/lib/plugins/config/core/
H A DConfigParser.php42 …$pattern = '/\$' . $this->varname . '\[[\'"]([^=]+)[\'"]\] ?= ?(.*?);(?=[^;]*(?:\$' . $this->varna…
44 preg_match_all($pattern, $contents, $matches, PREG_SET_ORDER);
/dokuwiki/lib/plugins/authldap/
H A Dauth.php27 protected $pattern; variable in auth_plugin_authldap
490 foreach ($this->pattern as $item => $pattern) {
492 if (!preg_match($pattern, $user)) return false;
494 if (!count(preg_grep($pattern, $info['grps']))) return false;
495 } elseif (!preg_match($pattern, $info[$item])) {
512 $this->pattern = [];
513 foreach ($filter as $item => $pattern) {
514 … $this->pattern[$item] = '/' . str_replace('/', '\/', $pattern) . '/i'; // allow regex characters
/dokuwiki/lib/plugins/authad/
H A Dauth.php71 protected $pattern = []; variable in auth_plugin_authad
776 foreach ($this->pattern as $item => $pattern) {
778 if (!preg_match($pattern, $user)) return false;
780 if (!count(preg_grep($pattern, $info['grps']))) return false;
781 } elseif (!preg_match($pattern, $info[$item])) {
797 $this->pattern = [];
798 foreach ($filter as $item => $pattern) {
799 … $this->pattern[$item] = '/' . str_replace('/', '\/', $pattern) . '/i'; // allow regex characters
/dokuwiki/inc/
H A Dio.php417 $pattern = $regex ? $oldline : '/^' . preg_quote($oldline, '/') . '$/';
427 $lines[$i] = preg_replace($pattern, $replace, $line, -1, $matched);
433 $lines = preg_grep($pattern, $lines, PREG_GREP_INVERT);
438 $lines = preg_replace($pattern, $replace, $lines);
814 * @param string $pattern PCRE pattern
821 function io_grep($file, $pattern, $max = 0, $backref = false) argument
834 if (preg_match($pattern, $line, $match)) {
/dokuwiki/inc/Utf8/
H A DPhpString.php329 …$pattern = '/(^|([\x0c\x09\x0b\x0a\x0d\x20]+))([^\x0c\x09\x0b\x0a\x0d\x20]{1})[^\x0c\x09\x0b\x0a\x…
332 $pattern,

12