I have a variable like the one below. It contains nested braces pair. I'd like to create a regexp that changes the variable value to the string "hello world". Can anyone help with me this?
$test = "hello
{{ text
{{innerbrace}}
some text
{{innerbrace2}}
some text
}} world"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.