Regular Expressions 101

Sponsors

Library entries

0
pcre2

E

E
Submitted by anonymous - 4 months ago
0
pcre2

demo

regex grouping demo
Submitted by Lidro - 4 months ago
0
pcre2

json-extract

eee
Submitted by anonymous - 4 months ago
0
pcre2

Match CSS Gradients

Match CSS Gradients
Submitted by Sean Dellis - 4 months ago
0
pcre2

add _&_ between numbers

adds (space)&(space) between numbers
Submitted by _ - 4 months ago
0
pcre2

iCAL v3

iCAL
Submitted by Appenjel - 4 months ago

Auth.log Parsing

Vote

0

Regular Expression
pcre2

/
^(?<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 - 4 months ago