cross-platform newline in regex