use regexp.Regexp instead of own Writer.
Merge branch 'issue/newline'