Regex match strings between asterisks
<p>I have a string like this:</p>

<pre><code>var s = "*string1* *string2* *string3*";
</code></pre>

<p>I'm trying to create a regex which returns an array of the three strings between <code>*</code></p>

<p>How can I do that? I tried using this but I'm not sure if it is correctly escaped</p>

<pre><code>s.match("\*(.*)\*")
</code></pre>

<p>Thanks</p>