I have a string like so:
This a [COLOR=red]:bye:[/COLOR] test but [COLOR=red]:go:[/COLOR] it's not working[COLOR=red]:sorry:[/COLOR].
I want to strip out any occurence of :text: after the first one. In the above example, the result would be:
This a [COLOR=red]:bye:[/COLOR] test but it's not working.
I'm trying to use preg_replace to do this. Unfortunately, I'm stumped.