Fix newline error in regex

fixes #177