Regular Expressions 101

Community Patterns

0

Url handling

Python
Simple regex to split url
Submitted by Hangfish - a year ago
0

find between

PCRE (PHP <7.3)
find between
Submitted by anonymous - a year ago
0

lua_pattern

Python
lua file name
Submitted by anonymous - a year ago
0

css class

PCRE (PHP <7.3)
css class
Submitted by anonymous - a year ago
0

提取js中的内容

Python
获取变量值等
Submitted by anonymous - a year ago
0

Procurar por IPv4

Python
Match em um IPv4 válido
Submitted by anonymous - a year ago
0

TCN Match

Python
Extract info about STP TCNs
Submitted by anonymous - a year ago

grok

0

Regular Expression
PCRE (PHP <7.3)

/
((?<syslog_pri>(^\<\d*\>))|(^(?<facility>[^\.]*)\.(?<severity>[^\s]*)))?\s*(?:%{SYSLOGTIMESTAMP:timestamp}|%{TIMESTAMP_ISO8601:timestamp}) %{SYSLOGHOST:iporhost}(?<messgae>.*)
/
g

Description

Loading markdown...
Submitted by anonymous - 8 years ago