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 15,020 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Discord Bot Token
ECMAScript (JavaScript)
JS/TS regex for token validation.
Submitted by
anonymous
-
a month ago
2023-10-24 12:26
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
replace static url tags in templates from flask to django
PCRE2 (PHP >=7.3)
replace static url tags in templates from flask to django
Submitted by
anonymous
-
a month ago
2023-10-23 14:47
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Start of Java Functions
PCRE2 (PHP >=7.3)
I wrote this regex to find all of the function headers in java.
Submitted by
anonymous
-
a month ago
2023-10-23 14:12
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
hyphenize
ECMAScript (JavaScript)
convert 16 chars into four hyphen separated groups
Submitted by
mco
-
a month ago
2023-10-23 13:21
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
L2 = {w ∈ Σ ∗ = {0, 1} ∗ | |w|1 = 2k + 1, k ∈ N}
PCRE2 (PHP >=7.3)
L2 = {w ∈ Σ ∗ = {0, 1} ∗ | |w|1 = 2k + 1, k ∈ N}
Submitted by
Alan Dantas
-
a month ago
2023-10-23 02:01
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
L012 = {w ∈ Σ | |w|000 = 0} ∗ = {0, 1} ∗ | |w|000 = 0}
PCRE2 (PHP >=7.3)
L012 = {w ∈ Σ | |w|000 = 0} ∗ = {0, 1} ∗ | |w|000 = 0}
Submitted by
Alan Dantas
-
a month ago
2023-10-23 01:37
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
L1 = {w ∈ Σ ∗ = {0, 1} ∗ | |w|0 = 2k, k ∈ N}
PCRE2 (PHP >=7.3)
L1 = {w ∈ Σ ∗ = {0, 1} ∗ | |w|0 = 2k, k ∈ N}
Submitted by
Alan Dantas
-
a month ago
2023-10-23 00:26
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Exabeam NGSC REGEX FIlters
PCRE2 (PHP >=7.3)
Regex to filter Fortinet DNS Request in Exabeam Fusion
Submitted by
Jonathan Moreira
-
a month ago
2023-10-20 15:19
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
English address
ECMAScript (JavaScript)
English address that can start with numbers, # sign or words (\w) followed with any combination of previously mentioned. Multi-line, global and case insensitive supported. Address CANNOT START WITH \w character _ or 0 or any other symbols
Submitted by
Dr St Clair Clarke
-
a month ago
2023-10-19 21:59
(Last modified a month ago)
2023-10-19 22:02
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
correos
PCRE2 (PHP >=7.3)
correos
Submitted by
lamusaliza
-
a month ago
2023-10-19 21:25
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
REGEX for parsing Received value in email headers (RFC822)
ECMAScript (JavaScript)
Example: Received: from VI1PR0102CA0029.eurprd01.prod.exchangelabs.com (2603:10a6:802::42) by VE1PR01MB5599.eurprd01.prod.exchangelabs.com (2603:10a6:803:11f::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.12; Thu, 9 Jan ...
Submitted by
anonymous
-
a month ago
2023-10-19 08:27
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
打关随机数作弊用户uid列表
PCRE2 (PHP >=7.3)
打关随机数作弊用户uid列表
Submitted by
dong.luo
-
a month ago
2023-10-19 07:53
(Last modified a month ago)
2023-10-19 08:06
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Ikea web Indonesia
PCRE2 (PHP >=7.3)
Ikea website indonesia url regex
Submitted by
ival
-
a month ago
2023-10-19 05:57
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Identificador de números decimales válidos
PCRE2 (PHP >=7.3)
Se soportan los números de la forma +2.3, +.34, 2.3, .5, -3.3, -.3
Submitted by
anonymous
-
a month ago
2023-10-17 05:27
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Full HTML recognition for Udacity Project
PCRE2 (PHP >=7.3)
Udacity AI for Trading - Project 6: Analyzing Stock Sentiment from Twits ( Sentiment Analysis) needs a HTML parsering. Examples came from the actual course exercise. Future improvements I could identify, make it a group and parser each /texttext/ pattern, if necessary ← perhaps it may have some ...
Submitted by
Eduardo Passeto
-
a month ago
2023-10-16 12:49
(Last modified a month ago)
2023-10-16 12:57
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Durbar Bagerhat
PCRE2 (PHP >=7.3)
/Explore the latest news and updates about Bagerhat on Durbar Bagerhat, your go-to source for insightful articles and information/gm
Submitted by
Faisal Hossain
-
2 months ago
2023-10-15 11:52
(Last modified 2 months ago)
2023-10-15 11:57
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Workaround for IIS rewrite rule redirects with urls
PCRE2 (PHP >=7.3)
Make sure http[s]:// uses two slashes, not one. IIS rewrite rules removes double slashes in the raw URL, breaking YOURLS (PHP) for example. This regexp changes all single slashes to double after a web protocol, including nested querystrings.
Submitted by
DeveloperDog
-
2 months ago
2023-10-12 07:48
(Last modified 2 months ago)
2023-10-12 09:42
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Repeat character with custom symbol
PCRE2 (PHP >=7.3)
OK
Submitted by
UVT
-
2 months ago
2023-10-12 03:01
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
ipv4 and ipv6 with mask in CIDR
PCRE2 (PHP >=7.3)
Match and validate both ipv4, ipv6 and CIDR notation mask!
Submitted by
Stefanos Mitropoulos
-
2 months ago
2023-10-11 20:04
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
testregexaa
PCRE2 (PHP >=7.3)
aaa
Submitted by
aaa
-
2 months ago
2023-10-11 17:43
1
2
3
4
5
6
7
...
751
Proxy Matcher
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
^
(?P<IP>
(?:
[
1
-
9
]
|
[
1
-
9
]
[
0
-
9
]
|
1
[
0
-
9
]
{2}
|
2
[
0
-
1
]
[
0
-
9
]
|
22
[
0
-
3
]
)
(?:
\.
(?:
0
|
[
1
-
9
]
|
[
1
-
9
]
[
0
-
9
]
|
1
[
0
-
9
]
{2}
|
2
[
0
-
4
]
[
0
-
9
]
|
25
[
0
-
5
]
)
){3}
)
:
(?P<PORT>
(?:
[
1
-
9
]
|
[
1
-
9
]
[
0
-
9
]
{1,3}
|
[
1
-
5
]
[
0
-
9
]
{4}
|
6
[
0
-
4
]
[
0
-
9
]
{3}
|
65
[
0
-
4
]
[
0
-
9
]
{2}
|
655
[
0
-
2
]
[
0
-
9
]
|
6553
[
0
-
5
]
)
)
$
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
dev.tntd2k2
-
6 months ago
2023-05-23 13:54