Regular Expressions 101

Sponsors

Library entries

0
pcre2

right operations +-*\

no description available
Submitted by xidios - 2 years ago
0
pcre2

Email

no description available
Submitted by anonymous - 2 years ago
0
pcre2

splitter

no description available
Submitted by anonymous - 2 years ago
0
pcre2

splitter

no description available
Submitted by anonymous - 2 years ago
0
python

Remove url links

no description available
Submitted by anonymous - 2 years ago
0
python

Strip misc punctuation

no description available
Submitted by anonymous - 2 years ago
0
python

Remove Non-words

no description available
Submitted by anonymous - 2 years ago
0
python

Remove short words

no description available
Submitted by anonymous - 2 years ago
0
python

Remove long words

no description available
Submitted by anonymous - 2 years ago
0
pcre2

Extract cdn images intercom

no description available
Submitted by anonymous - 2 years ago
0
python

named groups

no description available
Submitted by anonymous - 2 years ago
0
pcre2

vscode multiline

no description available
Submitted by anonymous - 2 years ago
0
pcre2

HITs mail task

no description available
Submitted by xidios - 2 years ago
0
pcre2

HITs data

no description available
Submitted by xidios - 2 years ago
0
pcre2

protocol ip port

no description available
Submitted by 0bel1sk - 2 years ago

IP Tables Rules

Vote

0

Regular Expression
pcre2

/
IN=(?P<source_interface>(\S+|\s?)) OUT=(?P<forward_interface>(\S+|\s?)) MAC=(?P<source_mac>(\S+|\s?)) SRC=(?P<source_ip>(?:([0-9]{1,3}\.){3}[0-9]{1,3})) DST=(?P<destination_ip>(?:([0-9]{1,3}\.){3}[0-9]{1,3})) LEN=(?P<pkt_len>\d+) TOS=(?P<pkt_tos>[\dx\d]+) PREC=(?P<pkt_prec>[\dx\d]+) TTL=(?P<pkt_ttl>\d+) ID=(?P<pkt_id>\d+)\s?(?P<pk_frg>[A-Z\s].?)\s?PROTO=(?P<pkt_protocol>[\w\d]+) SPT=(?P<source_port>\d+) DPT=(?P<dest_port>\d+) (LEN=(?P<pkt_length>\d+))?(WINDOW=(?P<pkt_window>\d+) RES=(?P<pkt_res>[\dx\d]+)? (?P<pkt_type>(\S+))?\s?(URGP=(?P<pkt_urgency>\d))?)?
/
gm

Description

Loading markdown...
Submitted by Proffalken - a year ago