Home
last modified time | relevance | path

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

12

/PHP-8.0/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");
11 * Test Basic Functionality of mb_ereg_replace()
14 echo "*** Testing mb_ereg_replace() : basic functionality ***\n";
23 $result_1 = mb_ereg_replace('(.*)def', '\\1 123', $string_ascii);
27 $result_2 = mb_ereg_replace('123', 'abc', $string_ascii);
32 $result_3 = mb_ereg_replace($regex1, '\\1_____\\2', $string_mb);
37 $result_4 = mb_ereg_replace($regex2, '_____', $string_mb);
43 *** 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-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-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-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 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 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-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 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 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 echo "*** Testing mb_ereg_replace() : usage variations ***\n";
87 var_dump( mb_ereg_replace($input, $replacement, $string, $option) );
94 *** Testing mb_ereg_replace() : usage variations ***
H A Dmb_regex_set_options.phpt11 print mb_ereg_replace(' -', '+', '- - - - -' );
14 print mb_ereg_replace(' -', '+', '- - - - -' );
H A Dbug72164.phpt2 Bug #72164 (Null Pointer Dereference - mb_ereg_replace)
14 $var8 = mb_ereg_replace($var2,$var3,$var3,$var0);
H A Dbug69151.phpt15 var_dump(NULL === mb_ereg_replace('.', "\\0", $str));

Completed in 21 milliseconds

12