I really can't figure this one out.
I have a string where I'm trying to match the three groups marked with opening and closing braces (e.g {content}), with the custom string I have below a double brace means it is escaped.
SetValue:{1} when {OVERVIEW{{}}.Debug=1} else {0}
// Here is an actual real life example
ValidWhen: {! Matches('^\\d{{3}}\\s\\d{{3}}\\s\\d{{3}}[\\s\\S]', COLLECTION.AccountNumber)} {Account Number must not be more than 9 numbers.}
I can't figure out a regex to match the second group as {OVERVIEW{{}}.Debug=1} instead of {OVERVIEW{{ the closest I've got is using this regex as I thought I might be able to use the lookbehind to prevent it stopping on the double braces.
/{(?!\}).*?\}/
Is this even possible? Or do I need some more elaborate string parsing?
\\d{{3}}regex means?{{}}..{{}}never appear outside{}.