Regular Expressions 101

Sponsors

Library entries

0
java

移除非法字符

冲鸭!
Submitted by anonymous - a year ago
0
java

123

123
Submitted by anonymous - a year ago
0
java

Yuque

Yuque
Submitted by anonymous - a year ago
0
java

Email Validation Pattern

Email Validation Pattern
Submitted by Aslam Anver - a year ago
0
golang

Changelog commit template

Changelog commit template
Submitted by anonymous - a year ago
0
golang

character followed by number

ehehe
Submitted by arahsafari - a year ago
0
golang

Another regex test

Testing for BetterDiscord chat alias plugin
Submitted by anonymous - a year ago
0
golang

Address

Address check
Submitted by anonymous - a year ago
0
java

Detect [YOTI] in string.xml

we can use this regex?
Submitted by anonymous - a year ago
0
java

subnet cidr check

subnet cidr check example 192.168.1.0/30
Submitted by Di - a year ago
0
java

ACM Code Extraction

title
Submitted by anonymous - a year ago
0
java

Email

Test e-amil
Submitted by uk - a year 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 - 7 months ago