Hi, I need to create a regex that matches the following pattern:
{any characters} per line. Possible string examples:
Example 1:
{123} abc {456} def {789} hg must return 3 matches:
{123}, {456} and {789}
Example 2:
abcd {{{r} 345} {mmm}
should return 2 mathces {r} and {mmm}
So basically the expression should match {any chacraters any number of times that is not {}, and then close}
So far I have come up with this, but it does not work:
{* [^ {]}
Thank you very much in advance
source share