Home
last modified time | relevance | path

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

/php-src/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
26 var_dump(preg_grep($value, $array));
33 var_dump(preg_grep($value, $array));
40 Warning: preg_grep(): Delimiter must not be alphanumeric, backslash, or NUL byte in %spreg_grep_err…
43 Warning: preg_grep(): No ending delimiter '/' found in %spreg_grep_error1.php on line %d
46 Warning: preg_grep(): Unknown modifier '/' in %spreg_grep_error1.php on line %d
49 Warning: preg_grep(): Unknown modifier 'F' in %spreg_grep_error1.php on line %d
51 preg_grep(): Argument #1 ($pattern) must be of type string, array given
58 preg_grep(): Argument #1 ($pattern) must be of type string, stdClass given
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-src/ext/standard/tests/network/
H A Dbug73594a.phpt14 $out = preg_grep("/^(?!($|;))/", $out);
H A Dbug73594.phpt14 $out = preg_grep("/^(?!($|;))/", $out);
/php-src/ext/pcre/
H A Dphp_pcre_arginfo.h86 ZEND_FUNCTION(preg_grep);
99 ZEND_FE(preg_grep, arginfo_preg_grep)
H A Dphp_pcre.stub.php142 function preg_grep(string $pattern, array $array, int $flags = 0): array|false {} function
H A Dphp_pcre.c2894 PHP_FUNCTION(preg_grep) in PHP_FUNCTION() argument
/php-src/sapi/cli/tests/
H A D006.phpt153 Function [ <internal:pcre> function preg_grep ] {

Completed in 30 milliseconds