Home
last modified time | relevance | path

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

12

/php-src/ext/pcre/tests/
H A Dsplit.phpt2 preg_split()
6 var_dump(preg_split('/*/', 'x'));
8 var_dump(preg_split('/[\s, ]+/', 'x yy,zzz'));
9 var_dump(preg_split('/[\s, ]+/', 'x yy,zzz', -1));
10 var_dump(preg_split('/[\s, ]+/', 'x yy,zzz', 0));
11 var_dump(preg_split('/[\s, ]+/', 'x yy,zzz', 1));
12 var_dump(preg_split('/[\s, ]+/', 'x yy,zzz', 2));
14 var_dump(preg_split('/\d*/', 'ab2c3u'));
15 var_dump(preg_split('/\d*/', 'ab2c3u', -1, PREG_SPLIT_NO_EMPTY));
19 Warning: preg_split(): Compilation failed: quantifier does not follow a repeatable item at offset 0…
H A Dpreg_split_error1.phpt2 Test preg_split() function : error conditions - bad regular expressions
9 * Testing how preg_split reacts to being passed the wrong type of regex argument
26 var_dump(preg_split($regex_value, $subject));
33 var_dump(preg_split($regex_value, $subject));
40 Warning: preg_split(): Delimiter must not be alphanumeric, backslash, or NUL byte in %spreg_split_e…
43 Warning: preg_split(): No ending delimiter '/' found in %spreg_split_error1.php on line %d
46 Warning: preg_split(): Unknown modifier '/' in %spreg_split_error1.php on line %d
49 Warning: preg_split(): Unknown modifier 'F' in %spreg_split_error1.php on line %d
51 preg_split(): Argument #1 ($pattern) must be of type string, array given
60 preg_split(): Argument #1 ($pattern) must be of type string, stdClass given
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_…
18 var_dump(preg_split('/(\d*)/', 'ab2c3u'));
H A Dpreg_split_basic.phpt2 Test preg_split() function : basic functionality
9 var_dump(preg_split('/[:,;\(\)]/', $string, -1, PREG_SPLIT_NO_EMPTY)); //parts of $string separated…
10 var_dump(preg_split('/:\s*(\w*,*\s*)+;/', $string)); //all text between : and ; is removed
11 var_dump(preg_split('/(\(|\))/', $string, -1, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY)); //all…
12 var_dump(preg_split('/NAME/i', $string)); //tries to find NAME regardless of case in $string (can't…
13 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 Derrors02.phpt2 Test preg_split() function : error conditions - Malformed UTF-8
6 var_dump(preg_split('/a/u', "a\xff"));
H A Derrors01.phpt2 Test preg_split() function : error conditions - Recursion limit exhausted
9 preg_split('/(\d*)/', 'ab2c3u');
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-src/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 Dphp_cli_server_pdeathsig.phpt17 return preg_split('(\s)', trim($lines ?? ''), flags: PREG_SPLIT_NO_EMPTY);
/php-src/sapi/fpm/tests/
H A Dbug78323.phpt18 $lines = preg_split('/\R/', $output);
29 $lines = preg_split('/\R/', $output);
/php-src/sapi/cgi/tests/
H A Dbug78323.phpt18 $lines = preg_split('/\R/', $output);
30 $lines = preg_split('/\R/', $output);
/php-src/scripts/dev/
H A Dcheck_parameters.php309 …$split = preg_split('/PHP_(?:NAMED_)?(?:FUNCTION|METHOD)\s*\((\w+(?:,\s*\w+)?)\)/S', $txt, -1, PRE…
316 $lines = preg_split("/(\r\n?|\n)/S", $txt, -1, PREG_SPLIT_DELIM_CAPTURE);
330 list($f) = preg_split('@/\*\s*}}}\s*\*/@S', $split[$i+1][0]);
/php-src/ext/pcre/
H A Dphp_pcre_arginfo.h84 ZEND_FUNCTION(preg_split);
97 ZEND_FE(preg_split, arginfo_preg_split)
H A Dphp_pcre.stub.php136 function preg_split(string $pattern, string $subject, int $limit = -1, int $flags = 0): array|false… function
/php-src/ext/mbstring/tests/
H A Dmb_split.phpt17 $result2 = preg_split( "/$spliton/", $str, $count );
/php-src/ext/opcache/tests/
H A Dphp_cli_server.inc10 $ini_array = preg_split('/\s+/', trim($ini));

Completed in 29 milliseconds

12