I\'m trying to extract whatever data inside ${}.
${}
For example, the data extracted from this string should be abc.
abc
git commit -m
Try re := regexp.MustCompile(\$\{(.*)\}) * is a quantifier, you need something to quantify. . would do as it matches everything.
regexp.MustCompile(\$\{(.*)\})
.