1--TEST--
2mb_ereg_replace()
3--SKIPIF--
4<?php
5extension_loaded('mbstring') or die('skip mbstring not available');
6function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
7?>
8--FILE--
9<?php
10	mb_regex_set_options( '' );
11	print mb_ereg_replace( ' ', '-', 'a b c d e' )."\n";
12	print mb_ereg_replace( '([a-z]+)','[\\1]', 'abc def ghi' );
13?>
14
15--EXPECT--
16a-b-c-d-e
17[abc] [def] [ghi]
18
19