Regular Expressions 101

Sponsors

Library entries

0
golang

emojis

no description available
Submitted by anonymous - 3 years ago
0
golang

Commit msg

no description available
Submitted by anonymous - 2 years ago
0
golang

Test

no description available
Submitted by anonymous - 3 years ago
0
golang

Cookie mask keywords

no description available
Submitted by anonymous - 3 years ago
0
golang

SEMS

no description available
Submitted by anonymous - 3 years ago
0
golang

SEMS

no description available
Submitted by anonymous - 3 years ago
0
golang

SEMS

no description available
Submitted by anonymous - 3 years ago
0
golang

SEMS

no description available
Submitted by anonymous - 3 years ago
0
golang

sem

no description available
Submitted by anonymous - 3 years ago
0
golang

conatact

no description available
Submitted by anonymous - 3 years ago
0
golang

totalsource

no description available
Submitted by anonymous - 3 years ago
0
golang

acountant

no description available
Submitted by anonymous - 3 years ago
0
golang

totalsource

no description available
Submitted by anonymous - 3 years ago
0
golang

pack shelves

no description available
Submitted by anonymous - 2 years ago
0
golang

sourctype

no description available
Submitted by anonymous - 2 years ago
0
golang

tag standard

no description available
Submitted by anonymous - 2 years ago
0
golang

match ***

no description available
Submitted by anonymous - 2 years ago
0
golang

https://twitter.com/MGWVc

[](url)
Submitted by anonymous - 2 years ago

MikroTik firewall logs

Vote

0

Regular Expression
golang

`
^(?P<RuleNumber>[\d]+)\s+(?P<Chain>[^\s]+):\s+in:(?P<InputInterface>[^,]+)\s+out:(?P<OutputInterface>[^,]+),\s+(?:src-mac\s+(?P<SourceMacAddress>[^,]+),\s+)?proto\s+(?P<Protocol>\w+)(?:\s+\((?P<Flags>[^)]+)\))?,\s+\[?(?P<SourceAddress>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|[a-f\d:]+)\]?(?::(?P<SourcePort>\d+))?->\[?(?P<DestinationAddress>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|[a-f\d:]+)\]?(?::(?P<DestinationPort>\d+))?,\s+len\s+(?P<Length>\d+)$
`
gm

Description

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