Contact: aviboots(AT)netvision.net.il
43,913 questions
57,315 answers
573 users
import re s = 'python##java,,c++,#c###,swift' lst = re.split('[#,][#,]', s) print(lst) ''' run: ['python', 'java', 'c++', 'c', '', 'swift'] '''