I have a string like this “{text}…{text}…{text}…text…” I need to replace the “text” value in the string but only the ones that are not in curly or square brackets
I have a string like this {text}…{text}…{text}…text… I need to replace the text value
Share
You should then use regular expressions :
You can use this with preg_replace() :