Regular Expressions 101

Sponsors

Library entries

3
pcre

Perl

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

Forum user validation

Pedro al DAMS
Submitted by giacomo - 7 years ago
3
pcre

Nombres 4 chiffres

Nombres 4 chifres
Submitted by EA - 7 years ago
3
pcre

Shortcode parser

Parse shortcodes, its attributes values and html
Submitted by anonymous - 7 years ago
3
pcre

POST OFFICE BOX

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

ln -l linux parse

parse linux ln -l output command
Submitted by guignol95 - 7 years ago
3
pcre

Select all number greater than 36

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

coffeescript operator

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

Remove br tags inside anchor tags

no description available
Submitted by anonymous - 6 years ago
3
python

iframe src parser

Get iframe src
Submitted by Sumeet Fefar - 6 years ago

MikroTik FireWall

Vote

10

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