Files
CyberPanel/plogical/test.py
2018-03-01 13:22:01 +05:00

7 lines
177 B
Python

import re
line = "usman.exampl.com"
matchObj = re.match( r'([\da-z\.-]+\.[a-z\.]{2,12}|[\d\.]+)([\/:?=&#]{1}[\da-z\.-]+)*[\/\?]?', line, re.M|re.I)
if matchObj:
print line