Regular Expressions 101

Sponsors

Library entries

0
pcre2

SMB share parsing

A regex for parsing SMB shares
Submitted by Drav Sloan - a year ago
0
pcre2

Check WP Admin URLs

Check WP admin pages that are indexed
Submitted by anonymous - a year ago
0
pcre2

Validate email

Regex for email validation
Submitted by anonymous - a year ago
0
pcre2

Nom avant domaine

sdfsdfsdfsdf
Submitted by sdfsfsdfsdf - a year ago
0
pcre2

HTML TAG Match

Match a html tag.
Submitted by Fernando Gaston Olivera Alaniz - a year ago
0
pcre2

quote

quote text
Submitted by anonymous - a year ago
0
pcre2

提取src

提取src
Submitted by anonymous - a year ago
0
pcre2

LinkedIn School Username

x
Submitted by anonymous - a year ago
0
pcre2

PCRE2 ipv6

Some cases of ipv6 at string begin
Submitted by anonymous - a year ago
0
pcre2

Database_Data_Type

Database_Data_Type
Submitted by anonymous - 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 - 9 months ago