Regular Expressions 101

Community Patterns

0

test

PCRE2 (PHP >=7.3)
test
Submitted by anonymous - 10 months ago
0

1-100

PCRE (PHP <7.3)
1-100
Submitted by anonymous - 10 months ago

Auth.log Parsing

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^(?<month>\S{3})? {1,2}(?<day>\S+) (?<time>\S+) (?<hostname>\S+) (?<process>.+?(?=\[)|.+?(?=))[^a-zA-Z0-9](?<pid>\d{1,7}|)[^a-zA-Z0-9]{1,3}(?<info>.*)$
/
gm

Description

Loading markdown...
Submitted by Jason King - a year ago
(Last modified a year ago)