Home
last modified time | relevance | path

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

12

/PHP-8.3/ext/mbstring/tests/
H A Dmb_ereg_replace_basic.phpt2 Test mb_ereg_replace() function : basic
7 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
12 * Test Basic Functionality of mb_ereg_replace()
15 echo "*** Testing mb_ereg_replace() : basic functionality ***\n";
24 $result_1 = mb_ereg_replace('(.*)def', '\\1 123', $string_ascii);
28 $result_2 = mb_ereg_replace('123', 'abc', $string_ascii);
33 $result_3 = mb_ereg_replace($regex1, '\\1_____\\2', $string_mb);
38 $result_4 = mb_ereg_replace($regex2, '_____', $string_mb);
44 *** Testing mb_ereg_replace() : basic functionality ***
H A Dmb_ereg_replace_named_subpatterns.phpt2 mb_ereg_replace() with named subpatterns
7 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
13 echo mb_ereg_replace('(?<a>\s*)(?<b>\w+)(?<c>\s*)', '\k<a>_\k<b>_\k<c>', 'a b c d e' ), "\n";
15 echo mb_ereg_replace('(?<word>[a-z]+)',"<\k'word'>", 'abc def ghi'), PHP_EOL;
17 …echo mb_ereg_replace('(1)(2)(3)(4)(5)(6)(7)(8)(9)(a)(\10)', '\k<0>-\k<10>-', '123456789aa'), PHP_E…
19 …echo mb_ereg_replace('(1)(2)(3)(4)(5)(6)(7)(8)(9)(a)(\10)', "\k'0'-\k'10'-", '123456789aa'), PHP_E…
21 echo mb_ereg_replace('a', "\k'0'_\k<01>", 'a'), PHP_EOL;
23 echo mb_ereg_replace('(?<a>A)\k<a>', '-\1-', 'AA'), PHP_EOL;
25 echo mb_ereg_replace('(\w)\1', '-\k<>-', 'AA'), PHP_EOL;
27 echo mb_ereg_replace('(?<a>\w+)', '-\k<a', 'AA'), PHP_EOL;
H A Dmb_ereg_replace.phpt2 mb_ereg_replace()
7 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
12 print mb_ereg_replace( ' ', '-', 'a b c d e' )."\n";
13 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
7 if (!function_exists('mb_ereg_replace')) die('skip mb_ereg_replace() not available');
13 var_dump(mb_ereg_replace('(%)', '\\\1', 'a%c'));
15 var_dump(mb_ereg_replace('(%)', '\\\\1', 'a%c'));
H A Dbug77514.phpt2 Bug #77514: mb_ereg_replace() with trailing backslash adds null byte
7 if (!function_exists('mb_ereg_replace')) die('skip mb_ereg_replace() not available');
13 var_dump(mb_ereg_replace("123","def\\",$a));
H A Dmb_ereg_replace-compat-13.phpt2 mb_ereg_replace() compat test 13
7 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
12 echo mb_ereg_replace('\?',"abc","?123?");
H A Dmb_ereg_replace-compat-12.phpt2 mb_ereg_replace() compat test 12
7 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
12 echo mb_ereg_replace("^","z","abc123");
H A Dmb_ereg_replace-compat-02.phpt2 mb_ereg_replace() compat test 2
7 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
13 echo mb_ereg_replace("123","",$a);
H A Dmb_ereg_replace-compat-03.phpt2 mb_ereg_replace() compat test 3
7 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
13 echo mb_ereg_replace("\\\\'","'",$a);
H A Dmb_ereg_replace-compat-01.phpt2 mb_ereg_replace() compat test 1
7 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
13 echo mb_ereg_replace("123","def",$a);
H A Dmb_ereg_replace-compat-06.phpt2 mb_ereg_replace() compat test 6
7 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
12 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
7 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
13 echo mb_ereg_replace("1(2*)3","\\1def\\1",$a);
H A Dmb_ereg_replace-compat-08.phpt2 mb_ereg_replace() compat test 8
7 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
13 echo mb_ereg_replace("123","def\\0ghi",$a);
H A Dmb_ereg_replace-compat-09.phpt2 mb_ereg_replace() compat test 9
7 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
13 echo mb_ereg_replace("123",'def\1ghi',$a);
H A Dmb_ereg_replace-compat-11.phpt2 mb_ereg_replace() compat test 11
7 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
13 echo mb_ereg_replace("a(.*)b(.*)c","\\1",$a);
H A Dmb_ereg_replace-compat-10.phpt2 mb_ereg_replace() compat test 10
7 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
13 echo mb_ereg_replace("123","def\\g\\\\hi\\",$a);
H A Dmb_ereg_replace-compat-05.phpt2 mb_ereg_replace() compat test 5
7 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
13 $b=mb_ereg_replace("abcd","",$a);
H A Dmb_ereg_replace-compat-04.phpt2 mb_ereg_replace() compat test 4
7 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
13 echo mb_ereg_replace("^This","That",$a);
H A Dmbregex_stack_limit2.phpt8 if (!function_exists('mb_ereg_replace')) die('skip mb_ereg_replace not available');
20 $string = mb_ereg_replace( "^($encoded_char_list)*", "", $string );
21 $string = mb_ereg_replace( "($encoded_char_list)*$", "", $string );
31 Warning: mb_ereg_replace(): mbregex search failure in php_mbereg_replace_exec(): match-stack limit …
H A Dphp_gr_jp_dev_884-2.phpt7 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
11 var_dump(mb_ereg_replace("C?$", "Z", "ABC"));
13 var_dump(mb_ereg_replace("C*$", "Z", "ABC"));
H A Dphp_gr_jp_dev_884-1.phpt7 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
13 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>
9 function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
13 echo "*** Testing mb_ereg_replace() : usage variations ***\n";
74 var_dump( mb_ereg_replace($input, $replacement, $string, $option) );
81 *** Testing mb_ereg_replace() : usage variations ***
H A Dmb_regex_set_options.phpt12 print mb_ereg_replace(' -', '+', '- - - - -' );
15 print mb_ereg_replace(' -', '+', '- - - - -' );
H A Dbug72164.phpt2 Bug #72164 (Null Pointer Dereference - mb_ereg_replace)
15 $var8 = mb_ereg_replace($var2,$var3,$var3,$var0);
H A Dbug69151.phpt16 var_dump(NULL === mb_ereg_replace('.', "\\0", $str));

Completed in 53 milliseconds

12