Regular Expressions 101

domain_check

Open Workspace
  • Python
  • Match
0

Regular Expression

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

Description

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

Submitted by Anonymous