Community Patterns

Community Library Entry

0

Regular Expression
Created·2020-10-26 02:50
Flavor·Python

r"
^(?:([a-zA-Z][\w-]*)\.)(?:([\w-]*)\.)(?:([\w-]*)\.)(?:([\w-]*))$
"
gm
Open regex in editor

Description

check if a gives string is a domain 检查一个给定的字符串是不是域名

Submitted by anonymous