Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
OpenVPN access log
Open Workspace
PCRE2 (PHP)
Match
Updated 2021-11-11 11:26
0
Regular Expression
/
^
(?P<dst_ip>
\d
{1,3}
\.
\d
{1,3}
\.
\d
{1,3}
\.
\d
{1,3}
)?
,
?
(?P<User>
[
a
-
zA
-
Z._
\d
]
+
)
,
(?P<src_ip>
\d
{1,3}
\.
\d
{1,3}
\.
\d
{1,3}
\.
\d
{1,3}
)
:
(?<ID>
\d
+
)
/
gm
Description
This regular expression can be used in SIEM or scripts to extract special fields such as:
Submitted by
EskiSlav