i have proxy string:
proxy = '127.0.0.1:8080'
i need check is it real string:
def is_proxy(proxy):
return not any(c.isalpha() for c in proxy)
to skip string like:
fail_proxy = 'This is proxy: 127.0.0.1:8080'
but some time i have like:
fail_proxy2 = '127.0.0.1:8080\r'
is_proxy(fail_proxy2) is True
True
need False