'Allow Dynamic URL for [IMG] Tags': link replacement question
Hello.
Is this 'preg_replace()' statement coded to replace ALL instances of [img] tags in one shot? If so, what can I change in the 'preg_replace()' to only change ONE link at a time if I put it in a loop? I can do the other alterations necessary.
I want to be able to evaluate each link separately to decide which image URLs to parse and which ones not.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(ref: class_bbcode.php and class_bbcode_alt.php in "function handle_bbcode_img()")
// do [img]xxx[/img]
$bbcode = preg_replace('#\[img\]\s*(https?://([^<>*"' . iif(!$this->registry->options['allowdynimg'], '?&') . ']+|[a-z0-9/\\._\- !]+))\[/img\]#iUe', "\$this->handle_bbcode_img_match('\\1')", $bbcode);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thanks in advance.
|