Searched refs:preg_grep (Results 1 – 14 of 14) sorted by relevance
/PHP-8.2/ext/pcre/tests/ |
H A D | preg_grep_error1.phpt | 2 Test preg_grep() function : error conditions - bad regular expressions 9 * Testing how preg_grep reacts to being passed bad regexes 11 echo "*** Testing preg_grep() : error conditions ***\n"; 22 var_dump(preg_grep($value, $array)); 29 var_dump(preg_grep($value, $array)); 36 *** Testing preg_grep() : error conditions *** 45 Warning: preg_grep(): No ending delimiter '/' found in %spreg_grep_error1.php on line %d 50 Warning: preg_grep(): Unknown modifier '/' in %spreg_grep_error1.php on line %d 55 Warning: preg_grep(): Unknown modifier 'F' in %spreg_grep_error1.php on line %d 59 preg_grep(): Argument #1 ($pattern) must be of type string, array given [all …]
|
H A D | grep2.phpt | 2 preg_grep() 2nd test 10 var_dump(preg_grep('/+/', array())); 14 var_dump(preg_grep('@^[a-z]+@', $array)); 15 var_dump(preg_grep('@^[a-z]+@', $array, PREG_GREP_INVERT)); 19 var_dump(preg_grep('@^[a-z]+@', $array)); 24 Warning: preg_grep(): Compilation failed: quantifier does not follow a repeatable item at offset 0 …
|
H A D | grep.phpt | 2 preg_grep() 7 var_dump(preg_grep('/^(\d|.\d)$/', $array)); 8 var_dump(preg_grep('/^(\d|.\d)$/', $array, PREG_GREP_INVERT));
|
H A D | preg_grep_basic.phpt | 2 Test preg_grep() function : basic functionality 10 var_dump(preg_grep('@^HTTP(.*?)\w{2,}$@i', $array)); //finds a string starting with http (regardles… 11 var_dump(preg_grep('@(/\w+\.*/*)+@', $array)); //finds / followed by one or more of a-z, A-Z and 0-… 12 var_dump(preg_grep('@^http://[^w]{3}.*$@i', $array)); //finds http:// (at the beginning of a string… 13 var_dump(preg_grep('@.*?\.co\.uk$@i', $array)); //finds any address ending in .co.uk (matches none) 14 var_dump(preg_grep('@^HTTP(.*?)\w{2,}$@i', $array, PREG_GREP_INVERT)); //same as first example but …
|
H A D | bug44191.phpt | 2 Bug #44191 (preg_grep messes up array index) 8 preg_grep('/asdf/', $array);
|
H A D | bug75089.phpt | 2 Bug #75089 (preg_grep() is not reporting PREG_BAD_UTF8_ERROR after first input string) 5 preg_grep('#\d#u', ['a', "1\xFF"/*, 'c'*/]);
|
H A D | bug44925.phpt | 2 Bug #44925 (preg_grep() modifies input array) 12 var_dump(preg_grep('/do not match/',$array)); 14 $a = preg_grep('/./',$array);
|
H A D | bug69864.phpt | 33 preg_grep('/foo' . $i . 'bar/', ['???foo' . $i . 'bar???']);
|
/PHP-8.2/ext/pcre/ |
H A D | php_pcre_arginfo.h | 74 ZEND_FUNCTION(preg_grep); 88 ZEND_FE(preg_grep, arginfo_preg_grep)
|
H A D | php_pcre.stub.php | 138 function preg_grep(string $pattern, array $array, int $flags = 0): array|false {} function
|
H A D | php_pcre.c | 2857 PHP_FUNCTION(preg_grep) in PHP_FUNCTION() argument
|
/PHP-8.2/ext/standard/tests/network/ |
H A D | bug73594a.phpt | 14 $out = preg_grep("/^(?!($|;))/", $out);
|
H A D | bug73594.phpt | 14 $out = preg_grep("/^(?!($|;))/", $out);
|
/PHP-8.2/sapi/cli/tests/ |
H A D | 006.phpt | 153 Function [ <internal:pcre> function preg_grep ] {
|
Completed in 24 milliseconds