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 9,420 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
camelCase Matches
PCRE (PHP <7.3)
camelCase Matches
Submitted by
anonymous
-
2 years ago
2022-02-24 07:49
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match Strings itself
PCRE (PHP <7.3)
Match Strings itself, include ""
Submitted by
picc_lu
-
2 years ago
2022-02-21 02:47
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Split words in brackets
Golang
Split words in brackets
Submitted by
ugurakcil
-
2 years ago
2022-02-18 20:12
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
cisco cat3650cx & cat1000 'show power inline'
Golang
Matching show power inline output on cat1000 & cat3560cx
Submitted by
me
-
2 years ago
2022-02-14 16:46
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
instagram regex url get shortcode all type url
PCRE (PHP <7.3)
Get shortcode from all type instagram url group 1 for username group 2 for p group 3 for reel group 4 for tv...
Submitted by
anubiskun
-
2 years ago
2022-02-13 21:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Strip Azure Devops merge commit for fit changelog
PCRE (PHP <7.3)
Using the right headerPattern that can correctly parse either the merge message or the commit message I was able to workaround the issue
Submitted by
anonymous
-
2 years ago
2022-02-11 22:07
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
assoc_ff_solucao
PCRE (PHP <7.3)
identifies ff in assoc
Submitted by
anonymous
-
2 years ago
2022-02-09 18:32
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Replacing URL through Hyperlink in Text
Golang
Replacing URL through Hyperlink in Text
Submitted by
anonymous
-
2 years ago
2022-02-04 07:56
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
ds100reg5
PCRE (PHP <7.3)
ds100reg5
Submitted by
anonymous
-
2 years ago
2022-02-04 01:22
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
regex101.com id grabber
PCRE (PHP <7.3)
Grabs the ID for the regex101.com permalink to code.
Submitted by
Sasha Garan
-
2 years ago
2022-02-03 12:22
(Last modified 2 years ago)
2022-02-03 12:30
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
ds100reg4
PCRE (PHP <7.3)
Data 100 Regular Expression 4, adapted from Princeton
Submitted by
anonymous
-
2 years ago
2022-02-03 07:06
(Last modified 2 years ago)
2022-02-03 07:10
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Extract URL parts only named capturing groups
Golang
Extract URL parts only named capturing groups
Submitted by
dixanms
-
2 years ago
2022-02-03 00:00
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
الرقم القومي المصري Egyptian National ID numer
PCRE (PHP <7.3)
استخراج المعلومات من الرقم القومي المصري لمعلومات اكثر رجاء زيارة: استخراج المعلومات من الرقم القومي المصري برمجياً
Submitted by
anonymous
-
2 years ago
2022-01-30 17:47
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
chia plot
Golang
chia plot
Submitted by
temple
-
2 years ago
2022-01-30 02:14
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Quiz Feed – Pages Only
PCRE (PHP <7.3)
The new quiz feed pages and its sub-feeds. i.e. /quizzes/foo
Submitted by
anonymous
-
2 years ago
2022-01-27 13:40
-2
0 upvotes, 2 downvotes (score 0%) (You must be signed in to vote)
Quizzes Feedpager – XML
PCRE (PHP <7.3)
Matches the XML pages of the /quizzes routes for feedpager
Submitted by
anonymous
-
2 years ago
2022-01-27 13:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
get arrays from Json
PCRE (PHP <7.3)
get arrays from Json
Submitted by
fawaz
-
2 years ago
2022-01-26 16:08
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Italian phone number regex
PCRE (PHP <7.3)
Italian phone number reg
Submitted by
Ali Babayev
-
2 years ago
2022-01-25 13:41
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Danish CPR number validation
PCRE (PHP <7.3)
CPR number is presented with or without a dash
Submitted by
anonymous
-
2 years ago
2022-01-22 07:53
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
No trailing spaces or extra spaces max char 200 min 2 and hyphen and & only allowed
PCRE (PHP <7.3)
No trailing spaces or extra spaces max char 200 min 2 and hyphen and & only allowed
Submitted by
Natalia zolotareva
-
2 years ago
2022-01-21 14:50
1
...
7
8
9
10
11
12
13
...
471
Date String ISO Pattern
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
Golang
`
^
(
\d
{4}
-
[
01
]
\d
-
[
0
-
3
]
\d
T
[
0
-
2
]
\d
:
[
0
-
5
]
\d
:
[
0
-
5
]
\d
\.
\d
+
(
[
+-
]
[
0
-
2
]
\d
:
[
0
-
5
]
\d
|
Z
)
)
|
(
\d
{4}
-
[
01
]
\d
-
[
0
-
3
]
\d
T
[
0
-
2
]
\d
:
[
0
-
5
]
\d
:
[
0
-
5
]
\d
(
[
+-
]
[
0
-
2
]
\d
:
[
0
-
5
]
\d
|
Z
)
)
|
(
\d
{4}
-
[
01
]
\d
-
[
0
-
3
]
\d
T
[
0
-
2
]
\d
:
[
0
-
5
]
\d
(
[
+-
]
[
0
-
2
]
\d
:
[
0
-
5
]
\d
|
Z
)
)
$
`
gm
Open regex in editor
Description
Loading markdown...
Submitted by
Lucas Morais
-
a year ago
2022-12-19 15:16