Regular Expressions 101

Community Patterns

detect proxy links

0

Regular Expression
Python

r"
(?:http(?:s?)|socks(?:5|5h))://(?:[A-Za-z0-9]*:[A-Za-z0-9]*@)*(?:\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}):(?:\d{2,5})
"
gm

Description

can detect socks and http proxies and also authenticated proxies

Submitted by Elyas Najibzadeh - a year ago (Last modified a year ago)