extended end of line regexp to include . and #