/PHP-7.0/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);
|
H A D | preg_match_all_error2.phpt | 14 $regex = '/[a-zA-Z]/'; 16 var_dump(preg_match_all($regex, $value, $matches)); 21 var_dump(preg_match_all($regex, $value, $matches));
|
/PHP-7.0/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.0/ext/pcre/ |
H A D | php_pcre.c | 331 key = regex; in pcre_get_compiled_regex_cache() 339 if (key != regex) { in pcre_get_compiled_regex_cache() 346 p = ZSTR_VAL(regex); in pcre_get_compiled_regex_cache() 353 if (key != regex) { in pcre_get_compiled_regex_cache() 368 if (key != regex) { in pcre_get_compiled_regex_cache() 413 if (key != regex) { in pcre_get_compiled_regex_cache() 417 if (pp < ZSTR_VAL(regex) + ZSTR_LEN(regex)) { in pcre_get_compiled_regex_cache() 436 while (pp < ZSTR_VAL(regex) + ZSTR_LEN(regex)) { in pcre_get_compiled_regex_cache() 485 if (key != regex) { in pcre_get_compiled_regex_cache() 499 if (key != regex) { in pcre_get_compiled_regex_cache() [all …]
|
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, … 60 PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex);
|
/PHP-7.0/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;
|
H A D | recursiveregexiterator.inc | 27 * @param regex the regular expression to match 34 function __construct(RecursiveIterator $it, $regex, $mode = 0, $flags = 0, $preg_flags = 0) { 35 parent::__construct($it, $regex, $mode, $flags, $preg_flags);
|
/PHP-7.0/ext/mbstring/tests/ |
H A D | mb_ereg_variation5.phpt | 2 Test mb_ereg() function : usage variations - Test anchors in regex 26 $regex = b'^.*?[[: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.0/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.0/ext/mbstring/oniguruma/doc/ |
H A D | API | 55 Create a regex object. 142 Create a regex object. 152 Create a regex object. 197 1 reg: regex object. 205 1 reg: regex object. 217 1 reg: regex object 241 1 reg: regex object 338 1 reg: regex object. 352 1 reg: regex object. 363 1 reg: regex object. [all …]
|