from re import * v=split(r"[\s,)(]", r"(C:\Users\Gleb\Desktop\сайты.txt,C:\Users\Gleb\Desktop\istock_000020116885large_-_copy-700x461.jpg)") print(v) The code displays:
['', 'C:\Users\Gleb\Desktop\сайты.txt', 'C:\Users\Gleb\Desktop\istock_000020116885large_-_copy-700x461.jpg', '']
And should display:
['C:\Users\Gleb\Desktop\сайты.txt', 'C:\Users\Gleb\Desktop\istock_000020116885large_-_copy-700x461.jpg']
Why so deduces?
strip()initially apply to a string or something. - Visman