Script to find locale strings missing from translations.php

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.