gui-host-lookup/generic/sanitize.py

8 lines
173 B
Python
Raw Normal View History

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