Home
last modified time | relevance | path

Searched refs:preg_grep (Results 1 – 14 of 14) sorted by relevance

/PHP-8.2/ext/pcre/tests/
H A Dpreg_grep_error1.phpt2 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 Dgrep2.phpt2 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 Dgrep.phpt2 preg_grep()
7 var_dump(preg_grep('/^(\d|.\d)$/', $array));
8 var_dump(preg_grep('/^(\d|.\d)$/', $array, PREG_GREP_INVERT));
H A Dpreg_grep_basic.phpt2 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 Dbug44191.phpt2 Bug #44191 (preg_grep messes up array index)
8 preg_grep('/asdf/', $array);
H A Dbug75089.phpt2 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 Dbug44925.phpt2 Bug #44925 (preg_grep() modifies input array)
12 var_dump(preg_grep('/do not match/',$array));
14 $a = preg_grep('/./',$array);
H A Dbug69864.phpt33 preg_grep('/foo' . $i . 'bar/', ['???foo' . $i . 'bar???']);
/PHP-8.2/ext/pcre/
H A Dphp_pcre_arginfo.h74 ZEND_FUNCTION(preg_grep);
88 ZEND_FE(preg_grep, arginfo_preg_grep)
H A Dphp_pcre.stub.php138 function preg_grep(string $pattern, array $array, int $flags = 0): array|false {} function
H A Dphp_pcre.c2857 PHP_FUNCTION(preg_grep) in PHP_FUNCTION() argument
/PHP-8.2/ext/standard/tests/network/
H A Dbug73594a.phpt14 $out = preg_grep("/^(?!($|;))/", $out);
H A Dbug73594.phpt14 $out = preg_grep("/^(?!($|;))/", $out);
/PHP-8.2/sapi/cli/tests/
H A D006.phpt153 Function [ <internal:pcre> function preg_grep ] {

Completed in 32 milliseconds