Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> text = u'Ala ma kota, a Ania ma psa.'
- >>> pattern = re.compile(ur'[\s\W]+')
- >>> pattern.split(text)
- [u'Ala', u'ma', u'kota', u'a', u'Ania', u'ma', u'psa', u'']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement