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