# Collection of code snippets by Arne VajhÃ¸j 
# (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
# coding=ISO-8859-1

import string, re

s = "Dette er en test. Rødgrød med fløde!\nNæste linie."
re_split = re.compile('[ .,;!?\n]+')
words = re_split.split(s)

for word in words:
    print word

wordlist = list(words)
print wordlist
