python, split on both \r and \n code example Example: how to split a string with newline in python var = myString.splitlines()