SyntaxFix
Write A Post
Hire A Developer
Questions
In Python:
# as Peter van der Wal's answer re.split(r'\r\n|\r|\n', text, flags=re.M)
or more rigorous:
# https://docs.python.org/3/library/stdtypes.html#str.splitlines str.splitlines()