Reputation: 49
I have the following demo data:
"${var.some_text.anothertext.test}"
"${var.some_text3}"
"${var.some_text2.anothertext}"
I wanna be able to remove the "${
and the }
.
The expected output is: var.some_text.anothertext.test
, var.some_text3
and/or var.some_text2.anothertext
.
How can I achieve that using Regex?
Upvotes: 0
Views: 667
Reputation: 522581
You may try the following find and replace, in regex mode:
Find: "\$\{(.*?)\}"
Replace: "$1"
Upvotes: 2