Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Most upvotes
Most downvotes
Highest Score
Lowest Score
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 4,760 community submitted regex patterns...
1
identify and extract Laravel-style route parameters
PCRE2 (PHP >=7.3)
Extracts a table/model name, and optionally a column name. Enforces well-formed parameters. Tested with /category/{aYes:bYes}/{cYes}/{dNo:}/{eNo:/{:fNo}
Submitted by
Martin Holt
-
a year ago
0
Trim part of filename to limit length
PCRE2 (PHP >=7.3)
Truncate the middle block in the filename if it exceeds the maximum length and leave constant blocks at the beginning and end
Submitted by
Andrey Smirnov
-
a year ago
0
Busca parametros função
PCRE2 (PHP >=7.3)
Busca os parametros de uma função
Submitted by
anonymous
-
a year ago
0
best2bee topic standard
PCRE2 (PHP >=7.3)
Submitted by
anonymous
-
a year ago
0
routestate
PCRE2 (PHP >=7.3)
pathfinder routestate logs are unreadable
Submitted by
anonymous
-
a year ago
0
RFC-3339
PCRE2 (PHP >=7.3)
A regex to validate RFC-3339 timestamps
Submitted by
anonymous
-
a year ago
0
檢查密碼是否符合要求
PCRE2 (PHP >=7.3)
長度在12到30個字符之間; 至少包含一個小寫字母; 至少包含一個大寫字母; 至少包含一個數字; 至少包含一個特殊符號(如!@#$%^&*()_+{}|:"?[];',./`~-)。
Submitted by
SCL
-
a year ago
0
Signals
PCRE2 (PHP >=7.3)
Replace Signal
Submitted by
RedFox Regex
-
a year ago
0
Emails regex
PCRE2 (PHP >=7.3)
This regex will validate pretty much every mail that could exist. It allows aliases and tags in the mail, therefore the mail can contain one or more dots and/or "+" signs (Exemple: exemple.test.alias+tag+tag2). It also allows Internationalized Domain Names (IDNs) (Exemple: @café.com), subdomains (Ex...
Submitted by
Skyle
-
a year ago
(Last modified a year ago)
0
Extract Dive Properties from Dive Code
PCRE2 (PHP >=7.3)
Extracts the following properties from a properly formatted dive code as specified by the World Aquatics organisation.
Submitted by
Hessel Bierma
-
a year ago
1
check simple code
PCRE2 (PHP >=7.3)
Check simple codes between 1 and 5 numbers: 281, 81992, 18, 829a7, 8299192
Submitted by
Stormyz
-
a year ago
1
all email types
PCRE2 (PHP >=7.3)
work@ing.yes
Submitted by
Stormyz
-
a year ago
0
Bangladeshi Phone Number Matching Regex
PCRE2 (PHP >=7.3)
Bangladeshi Any Phone Number Validated preg_match() in php function
Submitted by
anonymous
-
a year ago
0
Parsing a Log File Entry
PCRE2 (PHP >=7.3)
This regular expression matches the start of the string at the position where we have one or more alphanumeric characters followed by a space. Afterwards, we have a digit (one or more). Later, we have one or more spaces followed by a time format followed by a space and alphanumeric characters. The i...
Submitted by
Muhammad Afroz Khan Ghauri
-
a year ago
0
Clearlinux Repository file pattern
PCRE2 (PHP >=7.3)
not production ready
Submitted by
anonymous
-
a year ago
(Last modified a year ago)
0
Regex PO 2
PCRE2 (PHP >=7.3)
Regex PO 2
Submitted by
anonymous
-
a year ago
0
Regex PO
PCRE2 (PHP >=7.3)
Regex PO
Submitted by
anonymous
-
a year ago
0
8 Character Password
PCRE2 (PHP >=7.3)
RegEx
Submitted by
anonymous
-
a year ago
1
TH̘Ë͖́̉ ͠P̯͍̭O̚N̐Y̡ H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ
Python
This would appear to violate the premise of this famous StackOverflow answer, however this is not parsing as such, only matching or heuristic identification. Technically, all text is HTML if served to a browser in such a way that the browser chooses to interpret it that way, e.g. using a text/html ...
Submitted by
Alice Bevan-mcgregor
-
a year ago
-1
Kaspersky Security Center KSN domains (TLS)
PCRE2 (PHP >=7.3)
Match a subset of Kaspersky Security Center KSN domains that use TLS port 1443 (in addition to 443) for exclusion from TLS logs
Submitted by
kernelmustard
-
a year ago
1
...
33
34
35
36
37
...
238
Community Library Entry
0
Regular Expression
PCRE2 (PHP >=7.3)
/
(
\$
\w
+
)
\s
*
=
\s
*
array
\(\)
[
;
\s
]
+
(?:
(?:
else
)*
if
\s
*
\(
\w
+
\(\)
[
='"
]
+
(?:
exec
|
passthru
|
system
)
[
'"
]
[^
{
]
+
[
{
\s
]
+
(?:
echo
|
print
)
[^
;
]
+
[
;
\s
]
+
(?:
exec
|
passthru
|
system
)
\(\$
_
(?:
GET
|
POST
|
REQUEST
)
\[
[^
]
]
+
\]
\s
*
,
\s
*
\1
[^
}
]
+
[
}
\s
]
+
){1,3}
(?:
.
{50,300}
)
G6
\s
+
Shell
\s
+
/
si
Open regex in editor
Description
no description available
Submitted by
anonymous
-
4 years ago