Regular Expressions 101

Library entries

1
golang

Home

Dj dus er geen je een je aan je enige eerst een he we er
Submitted by Webmaster - 21 days ago
0
golang

Get digits

Trying to get digits
Submitted by Arthur Silva - a month ago
0
golang

walter1976LastClean

walter1976LastClean
Submitted by anonymous - a month ago
0
golang

pxc plcnext

plcnext version strings
Submitted by anonymous - 2 months ago
0
golang

domain

ss
Submitted by sssssss - 3 months ago
0
golang

Semver split

"1.2.3" Group 1: 1 Group 2: 2 Group 3: 3
Submitted by Icaruk - 3 months ago
0
golang

Kt SDK V2

kt SDKV2
Submitted by anonymous - 4 months ago
0
golang

GO SDK V2

Go SDK v2
Submitted by anonymous - 4 months ago
0
golang

REACT SDK V3

React SDK V3
Submitted by anonymous - 4 months ago
0
golang

log timestamp

extract time stamp from log entry
Submitted by anonymous - 4 months ago
0
golang

Golang Get variables In Js

To get
Submitted by anonymous - 5 months ago
0
golang

Date String ISO Pattern

Date String ISO Pattern matcher
Submitted by Lucas Morais - 5 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 - a year ago