Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Social
Join the Discord community!
Follow me on twitter!
Send me an email
Donate
Donate
Donate through Paypal
Become a Github Sponsor
Info
Info
Find out what's new!
RegEx101 Wiki
Report bugs or make suggestions
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Community Patterns
Community Patterns
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Get help on Discord
Get help on IRC
Order By
Most Recent
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET (C#)
Rust
Sponsors
Community Patterns
Search among 2,460 community submitted regex patterns...
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Extract content of code which start with a curly bracket and ends with a curly bracket followed by closing parenthesis
PCRE2 (PHP >=7.3)
answer demo for stack overflow question: Extract content of code which start with a curly bracket and ends with a curly bracket followed by closing parenthesis
Submitted by
anonymous
-
10 months ago
2023-01-20 17:51
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Transform a date string into a timestamp
PCRE2 (PHP >=7.3)
Transform a date string like: Mon Nov 10 1957 12:34:56 UTC +08:00 into: 11/10/195 12:34:56
Submitted by
Steve Aughnbaugh
-
8 months ago
2023-04-08 14:45
(Last modified 8 months ago)
2023-04-08 14:48
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
ESET Data Framework domains OLD (DNS)
PCRE2 (PHP >=7.3)
Match (incl. old) ESET Data Framework domains for exclusion from DNS logs
Submitted by
kernelmustard
-
6 months ago
2023-06-13 15:09
(Last modified 6 months ago)
2023-06-13 16:26
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
ESET Data Framework domains (DNS)
PCRE2 (PHP >=7.3)
Match ESET Data Framework domains for exclusion from DNS logs
Submitted by
kernelmustard
-
6 months ago
2023-06-13 15:12
(Last modified 6 months ago)
2023-06-13 16:27
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
ESET Repository domains (DNS)
PCRE2 (PHP >=7.3)
Match ESET Repository domains for exclusion from DNS logs
Submitted by
kernelmustard
-
5 months ago
2023-06-14 13:00
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
ESET INSPECT Cloud domains (DNS)
PCRE2 (PHP >=7.3)
Match ESET INSPECT Cloud domains for exclusion from DNS logs
Submitted by
kernelmustard
-
5 months ago
2023-06-14 13:53
(Last modified 5 months ago)
2023-06-14 13:55
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
ESET Push Notification Service domains (DNS)
PCRE2 (PHP >=7.3)
Match ESET Push Notification Service domains for exclusion from DNS logs
Submitted by
kernelmustard
-
5 months ago
2023-06-14 14:29
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
ESET LiveGuard Advanced domains (DNS)
PCRE2 (PHP >=7.3)
Match ESET LiveGuard Advanced domains for exclusion from DNS logs
Submitted by
kernelmustard
-
5 months ago
2023-06-14 14:36
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
ESET Services domains (DNS)
PCRE2 (PHP >=7.3)
Match ESET Services domains for exclusion from DNS logs
Submitted by
kernelmustard
-
5 months ago
2023-06-14 14:39
(Last modified 5 months ago)
2023-06-14 14:44
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
ESET ESET Online Help and Knowledgebase domains (DNS)
PCRE2 (PHP >=7.3)
Match ESET ESET Online Help and Knowledgebase domains for exclusion from DNS logs
Submitted by
kernelmustard
-
5 months ago
2023-06-14 14:47
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
ESET MSP Utility domains (DNS)
PCRE2 (PHP >=7.3)
Match ESET MSP Utility domains for exclusion from DNS logs
Submitted by
kernelmustard
-
5 months ago
2023-06-14 14:52
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Kaspersky Security Center update domains (DNS)
PCRE2 (PHP >=7.3)
Match Kaspersky Security Center update domains for exclusion from DNS logs
Submitted by
kernelmustard
-
5 months ago
2023-06-14 16:20
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Kaspersky Security Center update domains (TLS)
PCRE2 (PHP >=7.3)
Match Kaspersky Security Center update domains for exclusion from TLS logs
Submitted by
kernelmustard
-
5 months ago
2023-06-14 16:32
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Kaspersky Security Center KSN service domains (DNS)
PCRE2 (PHP >=7.3)
Match Kaspersky Security Center KSN service domains for exclusion from DNS logs
Submitted by
kernelmustard
-
5 months ago
2023-06-14 16:47
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Publication date filter
PCRE2 (PHP >=7.3)
Check that the template call has the parameter 'Publication Date' filled in
Submitted by
anonymous
-
3 years ago
2021-03-25 13:08
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Variable Variance Formula
PCRE2 (PHP >=7.3)
Variable Variance Formula This is parsing an Alteryx variance formula to show the versatility of re-writing expressions on the fly in your programs for dynamic repeatability, i.e. field names don't matter, and you never have to re-write the same variance formula again!
Submitted by
Chris Kusek
-
3 years ago
2021-04-11 15:10
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
identify duplicate consecutive words + word combinations to remove
PCRE2 (PHP >=7.3)
Identifies duplicate word and word combinations that exist consecutively within a string for removal. It is currently configured for up to 3 consecutive words but can be extended by adding additional (\s+\w)* to the first groups pattern match logic use with substitution val $1 good for removing d...
Submitted by
GrantO
-
2 years ago
2021-06-08 16:19
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
isNumber
PCRE2 (PHP >=7.3)
Find that given string is number or not.
Submitted by
anonymous
-
2 years ago
2021-08-11 11:48
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Password
PCRE2 (PHP >=7.3)
For password validation
Submitted by
anonymous
-
2 years ago
2021-09-13 19:51
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Last 4 charecters
PCRE2 (PHP >=7.3)
This regex allows you to access the last 4 charecters in a string and manipulate them however you want
Submitted by
anonymous
-
2 years ago
2022-01-23 08:53
1
...
23
24
25
26
27
28
29
...
123
Teachers expiry date 19022021
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(
(
0
[
1
-
9
]
|
[
12
]
\d
|
3
[
01
]
)
\/
(
0
[
3578
]
|
1
[
02
]
)
\/
(
(
202
[
1
-
9
]
)
)
)
$
|
^
(
(
0
[
1
-
9
]
|
[
12
]
\d
|
30
)
\/
(
0
[
469
]
|
11
)
\/
(
(
202
[
1
-
9
]
)
)
)
$
|
^
(
(
0
[
1
-
9
]
|
[
1
]
\d
|
(
2
[
0
-
8
]
)
)
\/
(
02
)
\/
(
202
[
2
-
9
]
)
)
$
|
^
(
(
0
[
1
-
9
]
|
[
12
]
\d
|
3
[
01
]
)
\/
(
01
)
\/
(
(
202
[
2
-
9
]
)
)
)
$
|
^
(
(
2
[
0
-
8
]
)
\/
(
02
)
\/
(
2021
)
)
$
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
3 years ago
2021-02-19 05:07