Contact: aviboots(AT)netvision.net.il
40,891 questions
53,304 answers
573 users
import re s = 'Python is an interpreted, general-purpose programming language' sp = re.split('\W+', s, 2) print(sp) ''' run: ['Python', 'is', 'an interpreted, general-purpose programming language'] '''