Script to find locale strings missing form the reference language

I think it could be of great help to have a script that automatically gets all the t() and e() calls and checks if the used string is within a languages translations.php.

The script itself should be quite self explaining, also the regex gave me some headaches.