Searched refs:preg_grep (Results 1 – 12 of 12) sorted by relevance
/PHP-7.4/ext/pcre/tests/ |
H A D | grep2.phpt | 2 preg_grep() 2nd test 10 var_dump(preg_grep(1,array(),3,4)); 11 var_dump(preg_grep(1, 2)); 12 var_dump(preg_grep('/+/', array())); 16 var_dump(preg_grep('@^[a-z]+@', $array)); 17 var_dump(preg_grep('@^[a-z]+@', $array, PREG_GREP_INVERT)); 21 var_dump(preg_grep('@^[a-z]+@', $array)); 26 Warning: preg_grep() expects at most 3 parameters, 4 given in %sgrep2.php on line 3 29 Warning: preg_grep() expects parameter 2 to be array, int given in %sgrep2.php on line 4 32 Warning: preg_grep(): Compilation failed: quantifier does not follow a repeatable item at offset 0 …
|
H A D | preg_grep_error1.phpt | 2 Test preg_grep() function : error conditions - bad regular expressions 6 * proto array preg_grep(string regex, array input [, int flags]) 11 * Testing how preg_grep reacts to being passed bad regexes 13 echo "*** Testing preg_grep() : error conditions ***\n"; 23 var_dump(preg_grep($value, $array)); 26 var_dump(preg_grep($value, $array)); 30 *** Testing preg_grep() : error conditions *** 39 Warning: preg_grep(): No ending delimiter '/' found in %spreg_grep_error1.php on line %d 44 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 [all …]
|
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 6 * proto array preg_grep(string regex, array input [, int flags]) 11 var_dump(preg_grep('@^HTTP(.*?)\w{2,}$@i', $array)); //finds a string starting with http (regardles… 12 var_dump(preg_grep('@(/\w+\.*/*)+@', $array)); //finds / followed by one or more of a-z, A-Z and 0-… 13 var_dump(preg_grep('@^http://[^w]{3}.*$@i', $array)); //finds http:// (at the beginning of a string… 14 var_dump(preg_grep('@.*?\.co\.uk$@i', $array)); //finds any address ending in .co.uk (matches none) 15 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-7.4/ext/standard/tests/network/ |
H A D | bug73594.phpt | 14 $out = preg_grep("/^(?!($|;))/", $out);
|
H A D | bug73594a.phpt | 14 $out = preg_grep("/^(?!($|;))/", $out);
|
/PHP-7.4/sapi/cli/tests/ |
H A D | 006.phpt | 145 Function [ <internal:pcre> function preg_grep ] {
|
/PHP-7.4/ext/pcre/ |
H A D | php_pcre.c | 2866 static PHP_FUNCTION(preg_grep) in PHP_FUNCTION() argument 3066 PHP_FE(preg_grep, arginfo_preg_grep)
|
Completed in 20 milliseconds