looking for a way to remove any text that is
[url=]
That would be easy, but the url itself is a URL I dont have control of.
e.g or urls:
[url=wqffqwfq] [url=qwfwqfqf]
etc.
Looking for a preg replace, currently have this:
$post_text = preg_replace('%\[URL[^\]]*\][^\[\]]*|\[/URL[^\]]*\]%i', '', $post_text);
But that removes the image that comes after the url.
Thanks.