My regular expression savvy is not up-to-snuff and I'm having trouble getting an expression exactly correct. Any help is greatly appreciated.
I need an expression that will match strings that contain exactly 1 set of outer-most curly braces. Whatever happens between those braces is legit, including nested braces. So, for example:
{test} OK
this is a {test} string OK
{this} is a {test} FAIL
{this {is} a test} OK
this { is {{{ a t}est OK
I hope that's clear. Thanks!