Changed regular expression to use newline as an end of sentence.