Regular Expressions 101

Sponsors

Library entries

0
golang

Golang Docker matcher

Used by me for docker-retagger
Submitted by Roman Minebaev - a year ago
0
golang

匹配邮箱

[A-Za-z0-9]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+) `
Submitted by Lintao - 10 months ago
0
golang

nginx access regex loki

nginx access log regex
Submitted by Lethisa Putri - 8 months ago
0
golang

S3 Path with ending .json

S3 Path with ending .json
Submitted by Sowmith - 6 months ago
0
golang

super regex

Get every word ending with dot using Regex/VBA
Submitted by anonymous - 4 months ago
0
golang

IPv4 Address Validation Regex

IPv4 Address Validation Regex
Submitted by ulgena - 3 months ago
0
golang

Date String ISO Pattern

Date String ISO Pattern matcher
Submitted by Lucas Morais - 3 months ago
0
golang

Golang Get variables In Js

To get
Submitted by anonymous - 3 months ago
0
golang

log timestamp

extract time stamp from log entry
Submitted by anonymous - 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 - 10 months ago