Regular Expressions 101

Library entries

0
pcre2

GSN

split words to keywords
Submitted by anonymous - 2 months ago
1
pcre2

BadDomainNamesDetected

/hostname=(?P\".*\")/gm
Submitted by KC.G - 2 months ago
0
pcre2

Record Date Rule (Semantic)

Record Date Rule (Semantic)
Submitted by Kasshyap - 2 months ago
0
pcre2

Add new line to every 2 sentences

-
Submitted by anonymous - 2 months ago
0
pcre2

regex for name unicode

regex detect name unicode
Submitted by hao.nguyen - 2 months ago
0
pcre2

match glassId

使用边界来匹配输出
Submitted by anonymous - 2 months ago
0
pcre2

chapter

a
Submitted by anonymous - 2 months ago

CoreDNS Logs

Vote

0

Regular Expression
pcre2

/
\[(?P<severity>\w+)\]\s*(?P<remote>[^\s:]+):(?P<port>\d+)\s*-\s*(?P<id>\d+)\s*"(?P<type>[\w]+)\s*(?P<class>\w+)\s*(?P<name>[^\s]+)\s*(?P<proto>\w+)\s*(?P<size>\d+)\s*(?P<do>\w+)\s*(?P<bufsize>\d+)"\s*(?P<rcode>\w+)\s*(?P<rflags>[^\s]+)\s+(?P<rsize>\d+)\s*(?P<duration>[^\s]+)
/
gm

Description

Loading markdown...
Submitted by Bharat Jindal - 4 months ago