this didn't work elegantly as expected: >>> ss 'owi\nweoifj\nfheu\n' >>> re.split(r'\A',ss) ['owi\nweoifj\nfheu\n'] >>> re.split(r'\Z',ss) ['owi\nweoifj\nfheu\n'] >>> re.split(r'$',ss) ['owi\nweoifj\nfheu\n'] >>> re.split(r'(?s)$',ss) ['owi\nweoifj\nfheu\n'] >>> re.split(r'(?m)(?s)$',ss) ['owi\nweoifj\nfheu\n'] >>> re.split(r'(?m)$',ss) ['owi\nweoifj\nfheu\n'] >>> re.split(r'(?m)\Z',ss) ['owi\nweoifj\nfheu\n'] >>> re.split(r'(?m)\A',ss) ['owi\nweoifj\nfheu\n'] >>> re.split(r'(?s)\A',ss) ['owi\nweoifj\nfheu\n'] >>> re.split(r'(?s)(?m)\A',ss) ['owi\nweoifj\nfheu\n'] >>>
how to do? Robert -- http://mail.python.org/mailman/listinfo/python-list