I have a string that looks like this:
$Data = 'Sometext {value1} text {value2} bla';
With a function, I replace {value1} with some text, but I don't replace {value2} and I want to remove that text.
I can't find the right regular expression to remove all { } with the text inside...
Tried $FormTable = ereg_replace('\{[a-z]\}', '', $FormTable);
$Data = 'Sometext {value1} text {value2} bla';
With a function, I replace {value1} with some text, but I don't replace {value2} and I want to remove that text.
I can't find the right regular expression to remove all { } with the text inside...
Tried $FormTable = ereg_replace('\{[a-z]\}', '', $FormTable);