13 lines
354 B
Python
13 lines
354 B
Python
|
import re
|
||
|
|
||
|
def user_input():
|
||
|
while True:
|
||
|
hosts = str(input("Type in or copy-paste "
|
||
|
"one or more IP addresses, domain names "
|
||
|
"URLs or email addresses: "
|
||
|
))
|
||
|
if hosts.strip() != '':
|
||
|
sanitized = re.split("; |, | ", hosts)
|
||
|
return sanitized
|
||
|
# break
|