1--TEST--
2mb_ereg() compat test 1
3--SKIPIF--
4<?php
5extension_loaded('mbstring') or die('skip');
6function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
7?>
8--FILE--
9<?php
10/* (counterpart: ext/standard/tests/reg/004.phpt) */
11  $a="This is a nice and simple string";
12  if (mb_ereg(".*nice and simple.*",$a)) {
13    echo "ok\n";
14  }
15  if (!mb_ereg(".*doesn't exist.*",$a)) {
16    echo "ok\n";
17  }
18?>
19--EXPECT--
20ok
21ok
22