modified regex to handle windows line endings
Merge pull request #7 from rbann/regexfix

modified regex to handle windows line endings