mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-10 23:36:11 +01:00
7 lines
177 B
Python
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 |