Code: Select all
"/{[^}]+)}/";
I would llike to support literal '}' by having them escaped soa a string like:
Code: Select all
{This is some text and an escaped \} which is not included as part of the string}EDIT | It occured to me it might be possible by adding an alternative match to the mix inside the negated operation, something like this:
Code: Select all
"/{[^}|\\}]+)}/";
Cheers,
Alex