- mb_ereg_match: documentation ( source)
- preg_match: documentation ( source)
<?php
$regex = '(((?!a).)*)*a\\{';
$test_string = 'AAAAAAAAAAAAAA{AA';
echo "1:".mb_ereg_match($regex,'WORKED',$test_string)."\n";
echo "2:".preg_match('/'.$regex.'/u','WORKED',$test_string)."\n";
echo "3:".preg_match('/'.$regex.'/','WORKED',$test_string)."\n";