1--TEST-- 2php-users@php.gr.jp #10830 3--SKIPIF-- 4<?php 5extension_loaded('mbstring') or die('skip mbstring not available'); 6function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build"); 7?> 8--FILE-- 9<?php 10$a="aaa\n<>"; 11 12var_dump( mb_ereg("^[^><]+$",$a) ); 13var_dump( !!preg_match("/^[^><]+$/",$a) ); 14?> 15--EXPECT-- 16bool(false) 17bool(false) 18