Home
last modified time | relevance | path

Searched refs:preg_replace (Results 1 – 25 of 68) sorted by last modified time

123

/php-src/scripts/dev/
H A Dbless_tests.php65 $out = preg_replace('/in (\/|[A-Z]:\\\\)\S+ on line \d+/m', 'in %s on line %d', $out);
66 $out = preg_replace('/in (\/|[A-Z]:\\\\)\S+:\d+/m', 'in %s:%d', $out);
67 $out = preg_replace('/\{closure:(\/|[A-Z]:\\\\)\S+:\d+\}/', '{closure:%s:%d}', $out);
68 $out = preg_replace('/object\(([A-Za-z0-9]*)\)#\d+/', 'object($1)#%d', $out);
69 $out = preg_replace('/^#(\d+) (\/|[A-Z]:\\\\)\S+\(\d+\):/m', '#$1 %s(%d):', $out);
70 $out = preg_replace('/Resource id #\d+/', 'Resource id #%d', $out);
71 $out = preg_replace('/resource\(\d+\) of type/', 'resource(%d) of type', $out);
72 $out = preg_replace(
76 $out = preg_replace('/string\(\d+\) "([^"]*%d)/', 'string(%d) "$1', $out);
H A Dtidy.php88 return preg_replace('/\h+$/m', '', $code);
H A Dcheck_parameters.php312 $txt = preg_replace('@//.*@S', '', $txt);
314 return preg_replace("/[^\r\n]+/S", "", $matches[0]);
341 check_function(preg_replace('/\s*,\s*/S', '::', $split[$i][0]), $f, $split[$i][1]);
/php-src/sapi/cli/tests/
H A D006.phpt90 Function [ <internal:pcre> function preg_replace ] {
H A Dphp_cli_server_013.phpt31 echo preg_replace("/<style>(.*?)<\/style>/s", "<style>AAA</style>", $output), "\n";
50 echo preg_replace("/<style>(.*?)<\/style>/s", "<style>AAA</style>", $output), "\n";
68 echo preg_replace("/<style>(.*?)<\/style>/s", "<style>AAA</style>", $output), "\n";
86 echo preg_replace("/<style>(.*?)<\/style>/s", "<style>AAA</style>", $output), "\n";
104 echo preg_replace("/<style>(.*?)<\/style>/s", "<style>AAA</style>", $output), "\n";
122 echo preg_replace("/<style>(.*?)<\/style>/s", "<style>AAA</style>", $output), "\n";
H A Dphp_cli_server_014.phpt51 echo preg_replace("/<style>(.*?)<\/style>/s", "<style>AAA</style>", $output), "\n";
/php-src/sapi/fpm/tests/
H A Dtester.inc466 $message = preg_replace("/\[.+?\]/", "", $outputLine, 1);
/php-src/ext/openssl/tests/
H A DServerClientTestCase.inc132 return preg_replace('/^\s*<\?(?:php)?|\?>\s*$/i', '', $code);
/php-src/build/
H A Dgen_stub.php2324 $expr = preg_replace("/(^'|'$)/", '"', $expr);
2326 … return $expr[0] == '"' ? $expr : preg_replace('(\bnull\b)', 'NULL', str_replace('\\', '', $expr));
4558 $exposedDocComment = preg_replace($pattern, '$1$3', $text);
5412 $replacedXml = preg_replace(
5552 $replacedXml = preg_replace(
5583 return preg_replace(
5789 $replacedXml = preg_replace(
/php-src/ext/pcre/
H A Dphp_pcre.c2373 PHP_FUNCTION(preg_replace) in PHP_FUNCTION() argument
2379 ZEND_FRAMELESS_FUNCTION(preg_replace, 3)
H A Dphp_pcre_arginfo.h72 ZEND_FRAMELESS_FUNCTION(preg_replace, 3);
74 { ZEND_FRAMELESS_FUNCTION_NAME(preg_replace, 3), 3 },
80 ZEND_FUNCTION(preg_replace);
H A Dphp_pcre.stub.php115 function preg_replace(string|array $pattern, string|array $replacement, string|array $subject, int … function
/php-src/Zend/
H A Dzend_vm_gen.php785 …$code = preg_replace(array_keys($specialized_replacements), array_values($specialized_replacements…
813 … $args = preg_replace("/,\s*([A-Za-z0-9_]*)\s*,\s*([^,)\s]*)\s*/", "$1 = $2; ", $matches[2]);
820 … $args = substr(preg_replace("/,\s*[A-Za-z0-9_]*\s*,\s*([^,)\s]*)\s*/", ", $1", $matches[2]), 2);
854 … $args = substr(preg_replace("/,\s*[A-Za-z0-9_]*\s*,\s*([^,)\s]*)\s*/", ", $1", $matches[2]), 2);
878 … $args = preg_replace("/,\s*([A-Za-z0-9_]*)\s*,\s*([^,)\s]*)\s*/", "$1 = $2; ", $matches[2]);
902 … $args = preg_replace("/,\s*([A-Za-z0-9_]*)\s*,\s*([^,)\s]*)\s*/", "$1 = $2; ", $matches[2]);
913 $code = preg_replace('/^\s*;\s*$/m', '', $code);
916 $code = preg_replace('/[ \t]+\n/m', "\n", $code);
/php-src/Zend/tests/
H A Dframeless_jmp_003.phpt6 preg_replace('/foo/', '', '');
H A Dframeless_jmp_005.phpt6 var_dump(preg_replace("/foo/", '', '', 1));
/php-src/Zend/tests/offsets/
H A Druntime_compile_time_offset_access.phpt30 $output = preg_replace('/\)#\d+ \(/', ')#99 (', $output);
/php-src/ext/pdo/tests/
H A Dpdo_test.inc67 $data = preg_replace('/^.*--REDIRECTTEST--/s', '', $data);
/php-src/ext/pcre/tests/
H A Dpreg_replace_error1.phpt2 Test preg_replace() function : error - bad regular expressions
9 * Testing how preg_replace reacts to being passed the wrong type of regex argument
26 var_dump(preg_replace($regex_value, $replace, $subject));
30 var_dump(preg_replace($regex_value, $replace, $subject));
37 Warning: preg_replace(): Delimiter must not be alphanumeric, backslash, or NUL byte in %spreg_repla…
40 Warning: preg_replace(): No ending delimiter '/' found in %spreg_replace_error1.php on line %d
43 Warning: preg_replace(): Unknown modifier '/' in %spreg_replace_error1.php on line %d
46 Warning: preg_replace(): Unknown modifier 'F' in %spreg_replace_error1.php on line %d
50 preg_replace(): Argument #1 ($pattern) must be of type array|string, stdClass given
H A Dpreg_replace_error2.phpt2 Test preg_replace() function : error conditions - wrong arg types
9 * Testing how preg_replace reacts to being passed the wrong type of replacement argument
16 var_dump(preg_replace($regex, $value, $subject));
23 var_dump(preg_replace($regex, $value, $subject));
30 preg_replace(): Argument #1 ($pattern) must be of type array when argument #2 ($replacement) is an …
31 preg_replace(): Argument #2 ($replacement) must be of type array|string, stdClass given
H A D002.phpt14 var_dump(preg_replace('/(.)/', '${1}${1', 'abc'));
15 var_dump(preg_replace('/.++\d*+[/', 'for ($', 'abc'));
16 var_dump(preg_replace('/(.)/e', 'for ($', 'abc'));
24 Warning: preg_replace(): Compilation failed: missing terminating ] for character class at offset 8 …
27 Warning: preg_replace(): Unknown modifier 'e' in %s on line %d
/php-src/ext/xml/tests/
H A Dbug32001.phpt40 $canonical_name = preg_replace('/BE|LE/i', '', $this->encoding);
/php-src/win32/build/
H A Dmkdist.php146 $itemdb = preg_replace("/\.(exe|dll|lib)$/i", ".pdb", $item);
160 $text = preg_replace("/(\r\n?)|\n/", "\r\n", $text);
/php-src/ext/ftp/tests/
H A Dserver.inc44 $cwd = preg_replace('@/?[^/]+/\.\.@', '', $cwd);
/php-src/ext/standard/tests/streams/
H A Dproc_open_bug60120.phpt7 $file = preg_replace(
93 $file = preg_replace("~\.clean\.php$~", ".io.php", __FILE__);
/php-src/sapi/fuzzer/
H A Dgenerate_unserializehash_corpus.php8 $algx = preg_replace('/[^-_a-zA-Z0-9]/', '_', $algo);

Completed in 76 milliseconds

123