Regular Expressions 101

Sponsors

Library entries

4
pcre

Jeff Test

Valid and Invalid emails
Submitted by anonymous - 7 years ago
4
pcre

kenteken validator

validator voor kenteken vb: 11-AA-BB
Submitted by Senne Root - 7 years ago
4
pcre

Mask credit card

no description available
Submitted by Albert Paris - 7 years ago
4
pcre

Version Matcher

Matches version strings.
Submitted by anmols - 7 years ago
4
pcre

c#

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

html tags

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

Get image tag attributes

no description available
Submitted by Agustín Bouillet - 7 years ago
5
pcre

Repair unquoted HTML attribute values

Usually MSWord HTML exports
Submitted by Ka. - 9 years ago
5
pcre

All href in a tag

Find all href in a tag
Submitted by Miron Yanovskiy - 9 years ago
5
pcre

Find All Python imports

no description available
Submitted by anonymous - 8 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