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,540 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Get Markdown Tables
PCRE2 (PHP >=7.3)
Get a Match for every table in a markdown file.
Submitted by
Matthias König
-
a month ago
2023-10-25 08:21
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Kafka loki parser
Golang
Kafka loki parser
Submitted by
anonymous
-
a month ago
2023-10-24 21:34
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
-
2 months 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
-
2 months ago
2023-10-23 14:12
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
-
2 months 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
-
2 months 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
-
2 months 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
-
2 months ago
2023-10-20 15:19
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
correos
PCRE2 (PHP >=7.3)
correos
Submitted by
lamusaliza
-
2 months ago
2023-10-19 21:25
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
-
2 months ago
2023-10-19 07:53
(Last modified 2 months 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
-
2 months 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
-
2 months 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
-
2 months ago
2023-10-16 12:49
(Last modified 2 months 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
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
12px
PCRE2 (PHP >=7.3)
查找替换
Submitted by
anonymous
-
2 months ago
2023-10-09 06:36
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Get number user format
PCRE2 (PHP >=7.3)
Get number user format
Submitted by
blurzoom
-
2 months ago
2023-10-08 04:28
(Last modified 2 months ago)
2023-10-09 06:56
1
2
3
4
5
6
7
...
127
Match any layer bracket pair (.NET)
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Regular Expression
.NET (C#)
@"
\w
+
\(
[^
()
]
*
(
(
(?'parenthesesPair'
\(
)
[^
()
]
*
)+
(
(?'-parenthesesPair'
\)
)
[^
()
]
*
)+
)*
(?(parenthesesPair)
(?!
)
)
\)
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
Yakumo Yukari
-
2 years ago
2022-03-10 03:13