After I PM'd you and didn't get a response I had someone else look into this issue. This is the code they came up with...
Code:
$messagetext = preg_replace_callback(
'#(^|\[/(' . $skiptaglist . ')\])(.*(\[(' . $skiptaglist . ')\]|$))#siU',
function ($matches)
{
return convert_url_to_bbcode_callback_auto_title($matches[3], $matches[1]);
},
$messagetext
);
I haven't tested your code but I know for certain that the one above works as I'm currently using it in a production environment.
Looks like the same code to me just a different variable name correct?