Home
last modified time | relevance | path

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

12

/PHP-7.4/ext/mbstring/tests/
H A Dmb_ereg_replace_basic.phpt2 Test mb_ereg_replace() function : basic
6 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
10 /* Prototype : string mb_ereg_replace(string $pattern, string $replacement,
17 * Test Basic Functionality of mb_ereg_replace()
20 echo "*** Testing mb_ereg_replace() : basic functionality ***\n";
29 $result_1 = mb_ereg_replace('(.*)def', '\\1 123', $string_ascii);
33 $result_2 = mb_ereg_replace('123', 'abc', $string_ascii);
38 $result_3 = mb_ereg_replace($regex1, '\\1_____\\2', $string_mb);
43 $result_4 = mb_ereg_replace($regex2, '_____', $string_mb);
49 *** Testing mb_ereg_replace() : basic functionality ***
H A Dmb_ereg_replace_named_subpatterns.phpt2 mb_ereg_replace() with named subpatterns
6 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
12 echo mb_ereg_replace('(?<a>\s*)(?<b>\w+)(?<c>\s*)', '\k<a>_\k<b>_\k<c>', 'a b c d e' ), "\n";
14 echo mb_ereg_replace('(?<word>[a-z]+)',"<\k'word'>", 'abc def ghi'), PHP_EOL;
16 …echo mb_ereg_replace('(1)(2)(3)(4)(5)(6)(7)(8)(9)(a)(\10)', '\k<0>-\k<10>-', '123456789aa'), PHP_E…
18 …echo mb_ereg_replace('(1)(2)(3)(4)(5)(6)(7)(8)(9)(a)(\10)', "\k'0'-\k'10'-", '123456789aa'), PHP_E…
20 echo mb_ereg_replace('a', "\k'0'_\k<01>", 'a'), PHP_EOL;
22 echo mb_ereg_replace('(?<a>A)\k<a>', '-\1-', 'AA'), PHP_EOL;
24 echo mb_ereg_replace('(\w)\1', '-\k<>-', 'AA'), PHP_EOL;
26 echo mb_ereg_replace('(?<a>\w+)', '-\k<a', 'AA'), PHP_EOL;
H A Dmb_ereg_replace.phpt2 mb_ereg_replace()
6 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
11 print mb_ereg_replace( ' ', '-', 'a b c d e' )."\n";
12 print mb_ereg_replace( '([a-z]+)','[\\1]', 'abc def ghi' );
H A Dbug77428.phpt2 Bug #77428: mb_ereg_replace() doesn't replace a substitution variable
6 if (!function_exists('mb_ereg_replace')) die('skip mb_ereg_replace() not available');
12 var_dump(mb_ereg_replace('(%)', '\\\1', 'a%c'));
14 var_dump(mb_ereg_replace('(%)', '\\\\1', 'a%c'));
H A Dmb_ereg_replace_variation1.phpt2 Test mb_ereg_replace() function : usage variations - <type here specifics of this variation>
8 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
12 /* Prototype : proto string mb_ereg_replace(string pattern, string replacement, string string [, s…
18 echo "*** Testing mb_ereg_replace() : usage variations ***\n";
93 var_dump( mb_ereg_replace($input, $replacement, $string, $option) );
100 *** Testing mb_ereg_replace() : usage variations ***
104 Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Us…
109 Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Us…
114 Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Us…
121 Warning: mb_ereg_replace(): Pattern is not valid under UTF-8 encoding in %s on line %d
[all …]
H A Dmb_ereg_replace-compat-13.phpt2 mb_ereg_replace() compat test 13
6 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
11 echo mb_ereg_replace('\?',"abc","?123?");
H A Dmb_ereg_replace-compat-12.phpt2 mb_ereg_replace() compat test 12
6 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
11 echo mb_ereg_replace("^","z","abc123");
H A Dmb_ereg_replace-compat-02.phpt2 mb_ereg_replace() compat test 2
6 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
12 echo mb_ereg_replace("123","",$a);
H A Dmb_ereg_replace-compat-03.phpt2 mb_ereg_replace() compat test 3
6 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
12 echo mb_ereg_replace("\\\\'","'",$a);
H A Dmb_ereg_replace-compat-06.phpt2 mb_ereg_replace() compat test 6
6 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
11 echo mb_ereg_replace("([a-z]*)([-=+|]*)([0-9]+)","\\3 \\1 \\2\n","abc+-|=123");
H A Dbug77514.phpt2 Bug #77514: mb_ereg_replace() with trailing backslash adds null byte
6 if (!function_exists('mb_ereg_replace')) die('skip mb_ereg_replace() not available');
12 var_dump(mb_ereg_replace("123","def\\",$a));
H A Dmb_ereg_replace-compat-01.phpt2 mb_ereg_replace() compat test 1
6 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
12 echo mb_ereg_replace("123","def",$a);
H A Dmb_ereg_replace-compat-07.phpt2 mb_ereg_replace() compat test 7
6 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
12 echo mb_ereg_replace("1(2*)3","\\1def\\1",$a);
H A Dmb_ereg_replace-compat-08.phpt2 mb_ereg_replace() compat test 8
6 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
12 echo mb_ereg_replace("123","def\\0ghi",$a);
H A Dmb_ereg_replace-compat-09.phpt2 mb_ereg_replace() compat test 9
6 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
12 echo mb_ereg_replace("123",'def\1ghi',$a);
H A Dmb_ereg_replace-compat-11.phpt2 mb_ereg_replace() compat test 11
6 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
12 echo mb_ereg_replace("a(.*)b(.*)c","\\1",$a);
H A Dmb_ereg_replace-compat-10.phpt2 mb_ereg_replace() compat test 10
6 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
12 echo mb_ereg_replace("123","def\\g\\\\hi\\",$a);
H A Dmb_ereg_replace-compat-05.phpt2 mb_ereg_replace() compat test 5
6 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
12 $b=mb_ereg_replace("abcd","",$a);
H A Dmb_ereg_replace-compat-04.phpt2 mb_ereg_replace() compat test 4
6 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
12 echo mb_ereg_replace("^This","That",$a);
H A Dbug72994.phpt6 if (!function_exists('mb_ereg_replace')) die('skip mb_ereg_replace() not available');
10 $var1 = mb_ereg_replace($var-232338951,NULL,NULL,NULL);
17 Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Us…
19 Warning: mb_ereg_replace(): Pattern is not valid under UTF-8 encoding in %s on line %d
H A Dphp_gr_jp_dev_884-2.phpt6 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
10 var_dump(mb_ereg_replace("C?$", "Z", "ABC"));
12 var_dump(mb_ereg_replace("C*$", "Z", "ABC"));
H A Dmbregex_stack_limit2.phpt7 if (!function_exists('mb_ereg_replace')) die('skip mb_ereg_replace not available');
19 $string = mb_ereg_replace( "^($encoded_char_list)*", "", $string );
20 $string = mb_ereg_replace( "($encoded_char_list)*$", "", $string );
30 Warning: mb_ereg_replace(): mbregex search failure in php_mbereg_replace_exec(): match-stack limit …
H A Dphp_gr_jp_dev_884-1.phpt6 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
12 var_dump(mb_ereg_replace(".*", "b", "a"));
H A Dbug72164.phpt2 Bug #72164 (Null Pointer Dereference - mb_ereg_replace)
13 $var8 = mb_ereg_replace($var2,$var3,$var3,$var0);
17 Deprecated: mb_ereg_replace(): The 'e' option is deprecated, use mb_ereg_replace_callback instead i…
H A Dbug43301.phpt17 echo mb_ereg_replace($ptr,'$1',$txt,'e');
21 Deprecated: mb_ereg_replace(): The 'e' option is deprecated, use mb_ereg_replace_callback instead i…
25 #0 %sbug43301.php(%d): mb_ereg_replace('hello', '$1', 'hello, I have g...', 'e')
31 #0 %sbug43301.php(%d): mb_ereg_replace('hello', '$1', 'hello, I have g...', 'e')

Completed in 28 milliseconds

12