8 lines
173 B
Python
8 lines
173 B
Python
|
import re
|
||
|
|
||
|
def strip_and_list(hosts):
|
||
|
if hosts.strip() != '':
|
||
|
sanitized = re.split("; |, | |\n", hosts)
|
||
|
return sanitized
|
||
|
# break
|