Regular Expressions 101

Sponsors

Library entries

0
golang

eleveo

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

FB match group

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

url match

url match
Submitted by anonymous - 3 years ago
0
golang

MikroTik firewall logs

Used with Azure Log Analytics
Submitted by anonymous - 3 years ago
0
golang

transform regex

vault sync
Submitted by anonymous - 3 years ago
0
golang

GO Docker tag

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

Address

for the demo 2019/09/27
Submitted by anonymous - 3 years ago
0
golang

More complete UK address from psql

for demo 2019/09/30
Submitted by anonymous - 3 years ago
0
golang

UK address extract the Postcode

for demo 2019/09/30
Submitted by anonymous - 3 years ago
0
golang

Golang Google UUID Validation

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

Report url regex

/ui_tests/master/28c6f611
Submitted by anonymous - 3 years ago
0
golang

Remove whiteSpace and char

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

my

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

FB payload

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

lkker-cos

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

Simple measurement amount and unit

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

ISO 8601 Datetime Validation

no description available
Submitted by anonymous - 3 years ago

Mikrotik Regex Firewall Log Golang

Vote

0

Regular Expression
golang

`
^.+>[\d]\s(?P<Date>\d{4}-\d{2}-\d{2})T(?P<Time>\d{2}:\d{2}:\d{2}).+firewall,info\s(?P<RadUser>\d+).+in:(?P<InputInterface>[^,]+)\s+out:(?P<OutputInterface>[^,]+),\s+(?:src-mac\s+(?P<SourceMacAddress>[^,]+),\s+)?proto\s+(?P<Protocol>\w+)(?:\s+\((?P<Flags>[^)]+)\))?,\s+\[?(?P<SrcIP>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|[a-f\d:]+)\]?(?::(?P<SrcPort>\d+))?->\[?(?P<DstIP>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|[a-f\d:]+)\]?(?::(?P<DstPort>\d+))?,\s(?P<NAT>\w+)\s\((?P<SrcIpLocalNat>\b(?:\d{1,3}\.){3}\d{1,3}\b):(?P<SrcPortLocalNat>\d+)->(?P<SrcIpPublicNat>\b(?:\d{1,3}\.){3}\d{1,3}\b):(?P<SrcPortPublicNat>\d+)\)->(?P<DestIpNat>\b(?:\d{1,3}\.){3}\d{1,3}\b):(?P<DestPortNat>\d+),.+
`

Description

Loading markdown...
Submitted by Vitor Abbade - 5 months ago