Fixed VS 2012 regex and added more extensions

In VS 2012 one has to use \r?$ instead of $ to match end of line