Regex get text before and after a hyphen
<p>I have this string:</p>

<pre><code>"Common Waxbill - Estrilda astrild"
</code></pre>

<p>How can I write 2 separate regexes for the words before and after the hyphen? The output I would want is:</p>

<pre><code>"Common Waxbill" 
</code></pre>

<p>and </p>

<pre><code>"Estrilda astrild"
</code></pre>