I have the following:
$string="rgb(Unknown characters) some text rgb(Unknown characters)";
I want to replace the the text Unknown characters
with some replacement. I have tried this:
echo str_replace("Unknown characters","some replace characters",$string);
This works for an exact text match but I don't know what is inside the parentheses.
I would like the output to be
rgb(some replace characters) some text rgb(some replace characters)
Please help me.