Regular Expressions 101

Sponsors

Library entries

1
python

telephone_founder

with obfuscation
Submitted by anonymous - a month ago
0
python

TRye bracktres

gfhtrgh
Submitted by anonymous - a month ago
0
java

Cron Syntax

This checks the syntax for CRON
Submitted by Till Hummel - a month ago
0
java

FullName_regex

2135
Submitted by anonymous - a month ago
0
python

Author names

Matches author names
Submitted by anonymous - a month ago
0
python

Bot-Studio Comments

Regex For Comments In Bot Studio Via YT Docs
Submitted by Codaea - a month ago
0
python

Phone number

Phone number
Submitted by anonymous - a month ago
0
python

分组引用

分组引用
Submitted by anonymous - 2 months ago
0
java

时间

时间
Submitted by 旧信 - 2 months 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 - 3 months ago