title: Multiple regexp match in Python (or logic?)
body: <p>I have a list of data with format like:</p>
  
  <pre><code> /packagename-&lt;digits&gt; &lt;someline&gt;
  </code></pre>
  
  <p>I need to parse the <code>packagename</code> as well. The main problem is that it is also can be:</p>
  
  <pre><code>Package_Name
  </code></pre>
  
  <p>or</p>
  
  <pre><code>Package-Name
  </code></pre>
  
  <p>or</p>
  
  <pre><code>package-name
  </code></pre>
  
  <p>or even</p>
  
  <pre><code>package_name
  </code></pre>
  
  <p>I tried the following pattern:</p>
  
  <pre><code>(?&lt;=\/)\w+
  </code></pre>
  
  <p>And well, it matches <code>packagename</code> as expected, but how should I parse the rest? It seems I failed to apply or logic or did it wrong.</p>