I am trying to parse out the following using Regexes in Java.
My Test String consists of strings within "${}" like for ex: "Test ${template} in ${xyz} : ${abc}"
I am trying to use the regex of the form (\$\{[^\}]+\}) to match it. The current regex does not match anything in the test string.
If I add (.*?)(\$\{[^\}]+\})(.*?) to make it ungreedy, it is really not consistent in giving me whatever I want to match.
What is the issue with my regex? How do I fix it?