I'm trying to extract whatever data inside ${}
.
For example, the data extracted from this string should be abc
.
git commit -m '${abc}'
Here is the actual code:
re := regexp.MustCompile("${*}")
match := re.FindStringSubmatch(command)
But that doesn't work, any idea?