This question already has an answer here:
- Regex to get string between curly braces “{I want what's between the curly braces}” 13 answers
I am trying to get a substring which is inside curly brackets by using regular expression.
Assuming that I have the following string:
"This is a {nice} text to search for a {cool} substring".
I'd like to be able to search for nice
and cool