- var_dump: documentation ( source)
- str_repeat: documentation ( source)
- preg_match: documentation ( source)
<?php
var_dump(preg_match('/^(A{1,2}B)+$/',str_repeat('AB',8192)));
//$match=preg_replace('~(..)*~','', str_repeat('.', 9431) );
//var_dump($match);