Hi all
Am trying to use preg_replace_callback to execute a function on instances within a string and the server crashes/reboots and page fails to load.
$plumb = preg_replace_callback('/\[([0-9]{1,3})\]/', getUrl, trim(mb_convert_encoding($_POST['content'], 'HTML-ENTITIES', "UTF-8")));
Was trying to call any instances within the string where there is a pair of square brackets containing a 1-3 character long integer.
Am utterly useless at these preg regular expressions - anyone spot a glaring flaw in my regular expression, encountered this problem before or got any suggestions?
Cole