Regular Expressions 101

Sponsors

Library entries

1
javascript

ie 11 check

checks for ie 11 user agent
Submitted by Yamakichi - 7 years ago
-2
pcre

Parse all adresses in href

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

4shared

www.4shared.com
Submitted by guru - 7 years ago
1
pcre

a-zA-Z + 0-9 + [!$%&?]

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

leap year validate

no description available
Submitted by Ahosan Karim Asik - 7 years ago
4
pcre

Phone number

no description available
Submitted by Mark Landry - 7 years ago
0
pcre

test

AttributeConnID 45524524355
Submitted by anonymous - 7 years ago
-3
pcre

iOS.Strings

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

For telephone

This is for telephone pattern +1 123-123-1234
Submitted by kevin - 7 years ago
1
pcre

ipv4

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

Div content

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

Bug revision

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 - 7 years ago