Regular Expressions 101

Sponsors

Library entries

-1
golang

rtrtr

gtgtg
Submitted by anonymous - 2 years ago
0
golang

aprs

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

Action Rec

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

Find DevExpress Assembly References

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

Table Stage 1

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

Table Stage Two

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

Parse tables in SQL Dump

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

Parse fields of SQL Dump

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

My lib

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

espacios antes

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

prepareTicket_closing

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

Phone

Phone Number
Submitted by anonymous - 4 years ago
0
golang

issue lookbehind

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

Splitter ES

no description available
Submitted by anonymous - 3 years ago
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

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 - 6 months ago