Regular Expressions 101

Sponsors

Library entries

0
pcre

simplewords

words
Submitted by glin - 7 years ago
1
pcre

MYV_POSTPAY_ACCESSLOG

no description available
Submitted by anonymous - 7 years ago
1
pcre

hstore

no description available
Submitted by anonymous - 7 years ago
0
pcre

Levi test

no description available
Submitted by anonymous - 7 years ago
34
javascript

IP Address validator

Validates IPv4 IP Address
Submitted by krzysp - 7 years ago
1
pcre

keep versions

no description available
Submitted by anonymous - 7 years ago
1
pcre

redaa

no description available
Submitted by anonymous - 7 years ago
1
pcre

File input type validation

no description available
Submitted by Ramkumar Venkatachalam - 7 years ago
1
pcre

match data-reactid

no description available
Submitted by anonymous - 7 years ago
0
pcre

Java poet regex alternative.

no description available
Submitted by anonymous - 7 years ago
1
pcre

Non-prod Application Log Regex

no description available
Submitted by Aditya Bindra - 7 years ago
1
pcre

{1-65536}

12
Submitted by anonymous - 7 years ago

MikroTik FireWall

Vote

11

Regular Expression
pcre

/
.+HappyMK\s?(?<action>\S+)\s(?<chain>\w+):\sin:(?<int_in>\S+)\sout:(?<int_out>\S+), src-mac\s(?<src_mac>\S+),\sproto\s(?<prot>\w+)(\s(?<flags>\S+),|,)\s(?<src_ip>\b(?:\d{1,3}\.){3}\d{1,3}\b):(?<src_port>\d+)->(?<dest_ip>\b(?:\d{1,3}\.){3}\d{1,3}\b):(?<dest_port>\d+),(\s(?<NAT>\w+)\s\((?<src_nat_localip>\b(?:\d{1,3}\.){3}\d{1,3}\b):(?<src_nat_local_port>\d+)->(?<src_nat_public_ip>\b(?:\d{1,3}\.){3}\d{1,3}\b):(?<src_nat_public_port>\d+)\)->(?<dest_nat_ip>\b(?:\d{1,3}\.){3}\d{1,3}\b):(?<dest_nat_port>\d+),)?(\sprio\s(?<prio>\d+->\d+),)?\slen\s(?<len>\d+)
/

Description

Loading markdown...
Submitted by HappyIdeasMaker - 7 years ago