This regular expression (the extra \ for each \ is because it is in java code
\\*\\{[\\w\\W]*\\}\\*
The actual would be
\*\{[\w\W]*\}\*
but this expression is not greedy on the }* side. I am trying to match everything between the { and the } so if I have
*{ some comment }* hi there and some stuff *{ comment 2 }* and soe more stuff
should end up with
hi there and some stuff and soe more stuff
but instead it is not greedy enough. There is info on greedy here and I thought I want X1 where that would be
\\*\\{[\\w\\W]*\\}1\\* or \\*\\{[\\w\\W]*\\}{1}\\*
but that doesn't work. How to use their X{n} thing to force greedy here in this example?