Regular Expressions 101

Sponsors

Library entries

1
pcre

1c document numbers

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

JSON KEY VALUE

Get key value in json string
Submitted by Marcio Paiva Barbosa - 7 years ago
1
pcre

Разбор имен Валмакс RL

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

ddd

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

Pure-Ftpd Log Action

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

YES!

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

decimal number validation

accepts 1; 1.1; 112315.23135
Submitted by MS - 7 years ago
1
pcre

redirect old links

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

Code Space Remover

Mathces unnecessary spaces in computer programs.
Submitted by Loovjo - 7 years ago
1
pcre

find used npm modules

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

(\s)(\d{9})(\s)</

no description available
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 - 8 years ago