title: Using regular expression to parse m3u file
body: <p>I am looking to parse a m3u file using a regular expression. The m3u looks like:</p>
  
  <pre><code>#EXTM3U
  #EXTINF:36,Artist - Title
  C:\Users\Public\Music\Sample Music\file1.mp3
  #EXTINF:19,Artist - Title
  C:\Users\Public\Music\Sample Music\file2.mp3
  #EXTINF:19,Artist - Title (Additional Title)
  C:\Users\Public\Music\Sample Music\file3.mp3
  #EXTINF:57,Artist - Title - Additional Title
  C:\Users\Public\Music\Sample Music\file4.mp3
  </code></pre>
  
  <p>When I open the file in a text editor the m3u is all in one line with no line breaks. I am looking to create two regular expression. The first one would parse the artist and title information. The regex output should be:</p>
  
  <pre><code>Artist - Title
  Artist - Title
  Artist - Title (Additional Title)
  Artist - Title - Additional Title
  </code></pre>
  
  <p>The second regex should parse the same information but capture the artist and title in separate groups. The regex output should be:</p>
  
  <p>Group 1</p>
  
  <pre><code>Artist
  Artist
  Artist
  Artist
  </code></pre>
  
  <p>Group 2</p>
  
  <pre><code>Title
  Title
  Title (Additional Title)
  Title - Additional Title
  </code></pre>
  
  <p>Any help is appreciated.</p>