Home
last modified time | relevance | path

Searched refs:preg_split (Results 1 – 25 of 25) sorted by relevance

/PHP-7.4/ext/pcre/tests/
H A Dsplit.phpt2 preg_split()
6 var_dump(preg_split());
7 var_dump(preg_split('/*/', 'x'));
9 var_dump(preg_split('/[\s, ]+/', 'x yy,zzz'));
10 var_dump(preg_split('/[\s, ]+/', 'x yy,zzz', -1));
11 var_dump(preg_split('/[\s, ]+/', 'x yy,zzz', 0));
12 var_dump(preg_split('/[\s, ]+/', 'x yy,zzz', 1));
13 var_dump(preg_split('/[\s, ]+/', 'x yy,zzz', 2));
15 var_dump(preg_split('/\d*/', 'ab2c3u'));
16 var_dump(preg_split('/\d*/', 'ab2c3u', -1, PREG_SPLIT_NO_EMPTY));
[all …]
H A Dpreg_split_error1.phpt2 Test preg_split() function : error conditions - bad regular expressions
6 * proto array preg_split(string pattern, string subject [, int limit [, int flags]])
11 * Testing how preg_split reacts to being passed the wrong type of regex argument
13 echo "*** Testing preg_split() : error conditions ***\n";
23 var_dump(preg_split($regex_value, $subject));
26 var_dump(preg_split($regex_value, $subject));
29 *** Testing preg_split() : error conditions ***
38 Warning: preg_split(): No ending delimiter '/' found in %spreg_split_error1.php on line %d
43 Warning: preg_split(): Unknown modifier '/' in %spreg_split_error1.php on line %d
48 Warning: preg_split(): Unknown modifier 'F' in %spreg_split_error1.php on line %d
[all …]
H A Dbug42945.phpt2 Bug #42945 (preg_split() swallows part of the string)
9 var_dump(preg_split('/\b/', "a'"));
10 var_dump(preg_split('/\b/', "a'", -1, PREG_SPLIT_OFFSET_CAPTURE));
11 var_dump(preg_split('/\b/', "a'", -1, PREG_SPLIT_NO_EMPTY));
12 var_dump(preg_split('/\b/', "a'", -1, PREG_SPLIT_NO_EMPTY|PREG_SPLIT_OFFSET_CAPTURE));
H A Dsplit2.phpt2 preg_split() 2nd test
8 var_dump(preg_split('/(\d*)/', 'ab2c3u', -1, PREG_SPLIT_DELIM_CAPTURE));
9 var_dump(preg_split('/(\d*)/', 'ab2c3u', -1, PREG_SPLIT_OFFSET_CAPTURE));
10 var_dump(preg_split('/(\d*)/', 'ab2c3u', -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE));
11 var_dump(preg_split('/(\d*)/', 'ab2c3u', -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_OFFSET_CAPTURE));
12 var_dump(preg_split('/(\d*)/', 'ab2c3u', -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_OFFSET_CAPTURE));
13 var_dump(preg_split('/(\d*)/', 'ab2c3u', -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE | PREG_…
19 var_dump(preg_split('/(\d*)/', 'ab2c3u'));
H A Dpreg_split_basic.phpt2 Test preg_split() function : basic functionality
6 * proto array preg_split(string pattern, string subject [, int limit [, int flags]])
10 var_dump(preg_split('/[:,;\(\)]/', $string, -1, PREG_SPLIT_NO_EMPTY)); //parts of $string separated…
11 var_dump(preg_split('/:\s*(\w*,*\s*)+;/', $string)); //all text between : and ; is removed
12 var_dump(preg_split('/(\(|\))/', $string, -1, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY)); //all…
13 var_dump(preg_split('/NAME/i', $string)); //tries to find NAME regardless of case in $string (can't…
14 var_dump(preg_split('/\w/', $string, -1, PREG_SPLIT_NO_EMPTY)); //every character (including whites…
H A Dbug20528.phpt2 Bug #20528 (preg_split() drops characters (re-opens Bug #15413))
6 var_dump(preg_split('/\b/', $data));
H A Dbug80866.phpt2 Bug #80866 preg_split ignores limit flag when pattern with \K has 0-width fullstring match
5 var_export(preg_split('~.{3}\K~', 'abcdefghijklm', 3));
H A Dbug42737.phpt2 Bug #42737 (preg_split('//u') triggers a E_NOTICE with newlines)
8 $array = preg_split('//u', $string, - 1, PREG_SPLIT_NO_EMPTY);
H A Dbug76127.phpt2 Bug #76127: preg_split does not raise an error on invalid UTF-8
5 var_dump(preg_split("/a/u", "a\xff"));
H A Dbug27103.phpt2 Bug #27103 (preg_split('//u') incorrectly splits UTF-8 strings into octets)
18 iter(preg_split('//u', $teststr, -1, PREG_SPLIT_NO_EMPTY));
H A Dbug70345.phpt8 var_dump(preg_split($regex, $subject));
H A Dbug70232.phpt10 var_dump(preg_split($pattern, $subject));
H A Dbug69864.phpt27 preg_split('/foo' . $i . 'bar/', '???foo' . $i . 'bar???');
H A D004.phpt15 var_dump(preg_split('/PHP_(?:NAMED_)?(?:FUNCTION|METHOD)\s*\((\w+(?:,\s*\w+)?)\)/S', "PHP_FUNCTION(…
/PHP-7.4/sapi/cli/tests/
H A Dbug78323.phpt23 $lines = preg_split('/\R/', $output);
35 $lines = preg_split('/\R/', $output);
47 $lines = preg_split('/\R/', $output);
59 $lines = preg_split('/\R/', $output);
H A D006.phpt129 Function [ <internal:pcre> function preg_split ] {
/PHP-7.4/sapi/fpm/tests/
H A Dbug78323.phpt18 $lines = preg_split('/\R/', $output);
29 $lines = preg_split('/\R/', $output);
/PHP-7.4/sapi/cgi/tests/
H A Dbug78323.phpt18 $lines = preg_split('/\R/', $output);
30 $lines = preg_split('/\R/', $output);
/PHP-7.4/sapi/cli/
H A Dgenerate_mime_type_map.php20 $fields = preg_split('/\s+/', $line);
/PHP-7.4/scripts/dev/
H A Dcheck_parameters.php318 …$split = preg_split('/PHP_(?:NAMED_)?(?:FUNCTION|METHOD)\s*\((\w+(?:,\s*\w+)?)\)/S', $txt, -1, PRE…
326 $lines = preg_split("/(\r\n?|\n)/S", $txt, -1, PREG_SPLIT_DELIM_CAPTURE);
341 list($f) = preg_split('@/\*\s*}}}\s*\*/@S', $split[$i+1][0]);
/PHP-7.4/ext/mbstring/tests/
H A Dmb_split.phpt18 $result2 = preg_split( "/$spliton/", $str, $count );
/PHP-7.4/ext/opcache/tests/
H A Dphp_cli_server.inc10 $ini_array = preg_split('/\s+/', trim($ini));
/PHP-7.4/
H A Drun-tests.php2091 $extensions = preg_split("/[\n\r]+/", trim($section_text['EXTENSIONS']));
2116 settings2array(preg_split("/[\n\r]+/", $section_text['INI']), $ini_settings);
2511 $rh = preg_split("/[\n\r]+/", $match[1]);
2526 $lines = preg_split("/[\n\r]+/", $section_text['EXPECTHEADERS']);
H A DNEWS382 . Fixed bug #80866 (preg_split ignores limit flag when pattern with \K has
2186 . Fixed bug #76127 (preg_split does not raise an error on invalid UTF-8).
/PHP-7.4/ext/pcre/
H A Dphp_pcre.c2504 static PHP_FUNCTION(preg_split) in PHP_FUNCTION() argument
3064 PHP_FE(preg_split, arginfo_preg_split)

Completed in 155 milliseconds