Contact: aviboots(AT)netvision.net.il
39,851 questions
51,772 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'] '''