My proxy parser reads proxies from txt files this way:
TYPE | IP | PORT
SOCKS5|192.168.0.1|3128
I want to make a validation to see if this line is valid.
TYPES are SOCKS4, SOCKS5, HTTP and HTTPS.
IP is any valid IP.
Port is any unsigned integer from 1 to 65535.
Any Regexp expert could help?
doesn’t validate the range though.