Advertisement
romeq8787

Untitled

Sep 22nd, 2014
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. >>> text = u'Ala ma kota, a Ania ma psa.'
  2. >>> pattern = re.compile(ur'[\s\W]+')
  3. >>> pattern.split(text)
  4. [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