Changed regex line endings to support *nix OS's