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