Split With Multiple Delim

Sat 17 May 2025

title: "Split with Multiple" author: "Rj" date: 2019-04-20 description: "List Test" type: technical_note draft: false


import re
content = "Hey, you - what are you doing here!?"
contents = re.findall(r"[\w']+", content)
contents
['Hey', 'you', 'what', 'are', 'you', 'doing', 'here']
for c in contents:
    print(c)
Hey
you
what
are
you
doing
here


Score: 5

Category: basics