Files
CyberPanel/plogical/test.py

7 lines
177 B
Python
Raw Normal View History

2018-03-01 13:22:01 +05:00
import re
2017-10-24 19:16:36 +05:00
2018-03-01 13:22:01 +05:00
line = "usman.exampl.com"
matchObj = re.match( r'([\da-z\.-]+\.[a-z\.]{2,12}|[\d\.]+)([\/:?=&#]{1}[\da-z\.-]+)*[\/\?]?', line, re.M|re.I)
2018-02-16 00:57:46 +05:00
2018-03-01 13:22:01 +05:00
if matchObj:
print line