Regular Expressions 101

@regex101
Donate
Sponsor
Contact
Bug Reports & Feedback
Wiki
Whats new?

Library entries

0
pcre2
Submitted by anonymous - 4 hours ago

Dup words

no description available
1
pcre2
Submitted by anonymous - 5 hours ago

Dutch zipcodes

no description available
1
pcre2
Submitted by anonymous - 5 hours ago

Dutch mobile phone number

no description available
0
pcre
Submitted by anonymous - 7 hours ago

Url regex

no description available
0
pcre
Submitted by anonymous - 8 hours ago

aaa

no description available
0
pcre2
Submitted by anonymous - 14 hours ago

Aplayer Icons Regex

no description available
0
pcre2
Submitted by anonymous - 14 hours ago

cisco command

no description available
0
pcre2
Submitted by Habibi Mustafa - 16 hours ago

Minify HTML

Remove Whitespace Remove Comment
0
pcre2
Submitted by anonymous - 18 hours ago

get main content if has :

no description available
0
pcre2
Submitted by anonymous - 18 hours ago

get number from string

no description available
0
python
Submitted by anonymous - 20 hours ago

conditional phone numbers

no description available
0
pcre2
Submitted by AiAbdrahim - 20 hours ago

Email

A valid Email
0
pcre2
Submitted by AiAbdrahim - 20 hours ago

Email

no description available
0
pcre2
Submitted by anonymous - 21 hours ago

URL

This pattern can detect URLs.
0
pcre2
Submitted by Alan Nevill - a day ago

AOC 2020 day 18

no description available
0
pcre2
Submitted by anonymous - a day ago

Sagitta - LTEPIC

no description available

MikroTik FireWall

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