Regular Expressions 101

Community Patterns

0

Template regex

PCRE2 (PHP >=7.3)
Template
Submitted by anonymous - a year ago
0

搜索第一个括号

PCRE2 (PHP >=7.3)
\(#.*?\)
Submitted by Michael - a year ago

Hostname validation

3

Regular Expression
Golang

`
(?i)^(?:([a-z0-9-]+|\*)\.)?([a-z0-9-]{1,61})\.([a-z0-9]{2,7})$
`
gm

Description

Loading markdown...
Submitted by AnonymousDapper - 7 years ago