/PHP-7.2/ext/pcre/tests/ |
H A D | null_bytes.phpt | 22 Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 3 24 Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 4 26 Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 5 28 Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 6 30 Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 7 32 Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 9 34 Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 10 36 Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 11 38 Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 12 40 Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 13 [all …]
|
H A D | pcre_count.phpt | 5 $regex = '/(([0-9a-z]+)-([0-9]+))-(([0-9]+)-([0-9]+))/'; 9 var_dump(preg_replace($regex, 'xxxx', $string, -1, $count)); 13 $regex = '/([a-z]+)/'; 16 var_dump(preg_replace($regex, 'xxxx', $string, -1, $count)); 20 $regex = '~((V(I|1)(4|A)GR(4|A))|(V(I|1)C(0|O)D(I|1)(N|\/\\\/)))~i'; 23 var_dump(preg_replace($regex, '...', $string, -1, $count)); 26 $regex = '~((V(I|1)(4|A)GR(4|A))|(V(I|1)C(0|O)D(I|1)(N|\/\\\/)))~i'; 29 var_dump(preg_replace($regex, '...', $string, -1));
|
H A D | bug47662.phpt | 6 $regex = '@'; 8 $regex .= '((?P<x'.$bar.'>))'; 11 $regex .= 'fo+bar@'; 13 var_dump(preg_match($regex, 'foobar'));
|
H A D | bug73483.phpt | 5 $regex = "#dummy#"; 7 var_dump(preg_replace_callback($regex, function (array $matches) use($regex) { 9 $ret = preg_replace($regex, "okey", $matches[0]);
|
H A D | bug70345.phpt | 5 $regex = '/(?=xyz\K)/'; 8 $v = preg_split($regex, $subject); 11 $regex = '/(a(?=xyz\K))/'; 13 preg_match($regex, $subject, $matches);
|
H A D | marks.phpt | 12 $regex = <<<'REGEX' 21 var_dump(preg_match($regex, '_c_', $matches)); 24 var_dump(preg_match_all($regex, '_a__b__c__d_', $matches, PREG_PATTERN_ORDER)); 27 var_dump(preg_match_all($regex, '_a__b__c__d_', $matches, PREG_SET_ORDER)); 30 var_dump(preg_replace_callback($regex, function($matches) {
|
H A D | preg_grep_error.phpt | 6 * proto array preg_grep(string regex, array input [, int flags]) 15 $regex = '/\d/'; 19 var_dump(preg_grep($regex, $input, $flags, $extra_arg)); 22 $regex = 'string_val'; 23 var_dump(preg_grep($regex));
|
H A D | preg_replace_error.phpt | 6 * proto string preg_replace(mixed regex, mixed replace, mixed subject [, int limit [, count]]) 15 $regex = '/\w/'; 20 var_dump(preg_replace($regex, $replace, $subject, $limit, $count, $extra_arg)); 23 $regex = '/\w/'; 25 var_dump(preg_replace($regex, $replace));
|
H A D | preg_replace_callback_error.phpt | 6 * proto string preg_replace(mixed regex, mixed replace, mixed subject [, int limit [, count]]) 20 $regex = '/\d/'; 24 var_dump(preg_replace_callback($regex, 'integer_word', $subject, $limit, $count, $extra_arg)); 27 $regex = '/\d/'; 28 var_dump(preg_replace_callback($regex, 'integer word'));
|
H A D | preg_grep_error2.phpt | 6 * proto array preg_grep(string regex, array input [, int flags]) 14 $regex = '/[a-zA-Z]/'; 18 var_dump(preg_grep($regex, $value)); 21 var_dump(preg_grep($regex, $value));
|
H A D | preg_replace_error2.phpt | 6 * proto string preg_replace(mixed regex, mixed replace, mixed subject [, int limit [, count]]) 14 $regex = '/[a-zA-Z]/'; 19 var_dump(preg_replace($regex, $value, $subject)); 22 var_dump(preg_replace($regex, $value, $subject));
|
H A D | bug41050.phpt | 7 $regex = '/(insert|drop|create|select|delete|update)([^;\']*('."('[^']*')+".')?)*(;|$)/i'; 11 if (preg_match($regex,$sql, $m)) echo 'matched';
|
H A D | preg_split_error2.phpt | 14 $regex = '/[a-zA-Z]/'; 18 var_dump(preg_split($regex, $value)); 21 var_dump(preg_split($regex, $value));
|
H A D | preg_match_error2.phpt | 14 $regex = '/[a-zA-Z]/'; 18 var_dump(preg_match($regex, $value)); 21 var_dump(preg_match($regex, $value));
|
H A D | preg_replace_callback.phpt | 10 $regex = '#\[indent]((?:[^[]|\[(?!/?indent])|(?R))+)\[/indent]#'; 16 return preg_replace_callback($regex, 'parseTagsRecursive', $input);
|
/PHP-7.2/ext/spl/tests/ |
H A D | bug68175.phpt | 6 $regex = new RegexIterator($arr, '/^test/'); 8 $regex->getMode(), 9 $regex->getFlags(), 10 $regex->getPregFlags()
|
/PHP-7.2/ext/spl/examples/ |
H A D | keyfilter.inc | 25 private $regex; 33 * @param regex Regular expression used as a filter. 35 function __construct(Iterator $it, $regex) 38 $this->regex = $regex; 45 return ereg($this->regex, $this->getInnerIterator()->key()); 52 return $this->regex;
|
H A D | regexfindfile.inc | 25 * @param $regex perl style regular expression to find files with 27 function __construct($path, $regex) 29 parent::__construct($path, $regex);
|
/PHP-7.2/ext/pcre/ |
H A D | php_pcre.h | 36 PHPAPI zend_string *php_pcre_replace(zend_string *regex, zend_string *subject_str, char *subject, i… 37 PHPAPI pcre* pcre_get_compiled_regex(zend_string *regex, pcre_extra **extra, int *options); 38 PHPAPI pcre* pcre_get_compiled_regex_ex(zend_string *regex, pcre_extra **extra, int *preg_options, … 59 PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex); 60 PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache_ex(zend_string *regex, int locale_aware);
|
H A D | php_pcre.c | 355 key = regex; in pcre_get_compiled_regex_cache_ex() 363 if (key != regex) { in pcre_get_compiled_regex_cache_ex() 370 p = ZSTR_VAL(regex); in pcre_get_compiled_regex_cache_ex() 377 if (key != regex) { in pcre_get_compiled_regex_cache_ex() 392 if (key != regex) { in pcre_get_compiled_regex_cache_ex() 437 if (key != regex) { in pcre_get_compiled_regex_cache_ex() 441 if (pp < ZSTR_VAL(regex) + ZSTR_LEN(regex)) { in pcre_get_compiled_regex_cache_ex() 460 while (pp < ZSTR_VAL(regex) + ZSTR_LEN(regex)) { in pcre_get_compiled_regex_cache_ex() 510 if (key != regex) { in pcre_get_compiled_regex_cache_ex() 524 if (key != regex) { in pcre_get_compiled_regex_cache_ex() [all …]
|
/PHP-7.2/ext/spl/internal/ |
H A D | regexiterator.inc | 31 private $regex; /**< the regular expression to match against */ 45 * @param regex the regular expression to match 52 function __construct(Iterator $it, $regex, $mode = 0, $flags = 0, $preg_flags = 0) { 54 $this->regex = $regex; 78 return preg_match($this->regex, $subject, $matches, $this->preg_flags); 82 return preg_match($this->regex, $subject, $this->current, $this->preg_flags) > 0; 86 return preg_match_all($this->regex, $subject, $this->current, $this->preg_flags) > 0; 90 preg_split($this->regex, $subject, $this->current, $this->preg_flags) > 1; 94 $result = preg_replace($this->regex, $this->replacement, $subject); 166 return $this->regex;
|
/PHP-7.2/ext/fileinfo/ |
H A D | magicdata.patch | 60 ->0 regex/4 P1[A-Za-z0-9_] 61 +>0 regex/4 P1[\040\t\f\r\n] 68 ->0 regex/4 P2[A-Za-z0-9_] 69 +>0 regex/4 P2[\040\t\f\r\n] 76 ->0 regex/4 P3[A-Za-z0-9_] 77 +>0 regex/4 P3[\040\t\f\r\n] 84 ->0 regex/4 P4[A-Za-z0-9_] 85 +>0 regex/4 P4[\040\t\f\r\n] 92 ->0 regex/4 P5[A-Za-z0-9_] 93 +>0 regex/4 P5[\040\t\f\r\n] [all …]
|
/PHP-7.2/ext/mbstring/tests/ |
H A D | mb_ereg_variation5.phpt | 2 Test mb_ereg() function : usage variations - Test anchors in regex 26 $regex = '^.*?[[:blank:]]?[[:punct:][:digit:]]+\.?$'; 29 var_dump(mb_ereg($regex, $string_ascii)); 31 var_dump(mb_ereg($regex, $string_ascii, $regs_ascii)); 35 var_dump(mb_ereg($regex, $string_mb)); 37 var_dump(mb_ereg($regex, $string_mb, $regs_mb));
|
/PHP-7.2/ext/fileinfo/tests/ |
H A D | finfo_file_regex.phpt | 2 Test finfo_file() function : regex rules 16 echo "*** Testing finfo_file() : regex rules ***\n"; 26 *** Testing finfo_file() : regex rules ***
|
/PHP-7.2/ext/mbstring/oniguruma/doc/ |
H A D | API | 61 Create a regex object. 148 Create a regex object. 158 Create a regex object. 203 1 reg: regex object. 211 1 reg: regex object. 223 1 reg: regex object 247 1 reg: regex object 271 1 reg: regex object 365 1 reg: regex object. 379 1 reg: regex object. [all …]
|