Add multiline flag to make regex truly multiline