Golang: extract data with Regex
<p>I'm trying to extract whatever data inside <code>${}</code>.</p>

<p>For example, the data extracted from this string should be <code>abc</code>.</p>

<pre><code>git commit -m '${abc}'
</code></pre>

<p>Here is the actual code:</p>

<pre><code>re := regexp.MustCompile("${*}")
match := re.FindStringSubmatch(command)
</code></pre>

<p>But that doesn't work, any idea?</p>