I have a string I want to match, which has content inside curly brackets I want to parse with regex in Java.
The string looks like:
#{apgarscore} >= 0 && #{apgarscore} < 4 && #{apgarcomment} == ''
I try to use #\{(.+)\}
The result is that it for some reason matches
apgarscore} >= 0 && #{apgarscore} < 4 && #{apgarcomment
rather than three separate values.
I tested it with here which yields the same result.
Can anyone please help me understand what I need to do differently?