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