Regular Expressions 101

Sponsors

Library entries

0
pcre2

Latex Quotes

Convert "text" to ``text''
Submitted by anonymous - 9 months ago
0
golang

character followed by number

ehehe
Submitted by arahsafari - 9 months ago
0
pcre2

IBM MQ Log Parser

Breaks the IBM MQ Log into records.
Submitted by James Phillips - 9 months ago
0
pcre2

runs on /p/

runs on /p/
Submitted by anonymous - 9 months ago
0
pcre2

Целые числа

Для тестов
Submitted by anonymous - 9 months ago
0
pcre2

Get date from string

Get date from string
Submitted by anonymous - 9 months ago
0
pcre2

任意字符串

(.*)
Submitted by kobunketsu - 9 months ago
0
golang

Address

Address check
Submitted by anonymous - 9 months ago
0
pcre2

Les_crises

Articles revue "Les crises". Clean comments
Submitted by anonymous - 9 months ago
0
pcre2

ID-in-C

Identifiers in C
Submitted by anonymous - 9 months 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 - 8 months ago