title: export .po file into .csv
body: <p>I am looking for a simple way to create an excel or CSV file from a .po localization file.</p>
  
  <p>I couldn't find any via Google, so i'm thinking of writing it myself in PHP.
  The PO file has such structure</p>
  
  <p>msgid "Titre"
  msgstr "Titre"</p>
  
  <p>So i guess i need my PHP script to parse the .po file looking for "the first bit of text between comma after each occurrence of the keyword msgstr".</p>
  
  <p>I assume that's the job for a regex, so i tried that, but it does not return anything:</p>
  
  <pre><code>$po_file = '/path/to/messages.po';
  
  if(!is_file($po_file)){
      die("you got the filepath wrong dude.");
  }
  
  $str = file_get_contents($po_file);
  // find all occurences of msgstr "SOMETHING"
  preg_match('@^msgstr "([^/]+)"@i', $str, $matches);
  $msgstr = $matches[1];
  
  var_dump($msgstr);
  </code></pre>