Regular Expressions 101

Sponsors

Library entries

2
pcre

Extract .mp3 url

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

Angular 2 property access

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

bash

bash
Submitted by b10n1k - 7 years ago
2
pcre

Float Representation

no description available
Submitted by S-YOU - 7 years ago
2
pcre

Chinese slang words regex

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

Common Taiwanese slang regex

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

word before :

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

file extension validation

no description available
Submitted by Lisa - 7 years ago
2
javascript

pdf url link

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

BRAZILIAN VEHICLE PLATE

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

fffs

dfsfd
Submitted by anonymous - 7 years ago
2
javascript

Delimite a number with 3-digital block

no description available
Submitted by Willy - 7 years ago
2
javascript

password 1upper 1lower 1number 1specialcharater

fjk@1Qaa$
Submitted by Anuswadh - 7 years ago

mikrotik

Vote

2

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