multiple line splits replaced with single RegExes