Doesn't re.S take care of the newline ? Will check though.