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,360 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Get X range of words from a string
PCRE2 (PHP >=7.3)
Get words in a certain range from a varied string
Submitted by
anonymous
-
a year ago
2022-09-29 14:38
(Last modified a year ago)
2022-10-01 14:43
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Url breakdown
PCRE2 (PHP >=7.3)
Check validity of url and break it down into logical parts.
Submitted by
jokle
-
a year ago
2022-09-29 08:57
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
match a substring starting from a word and ending at a word
PCRE2 (PHP >=7.3)
match a substring starting from a word and ending at a word
Submitted by
anonymous
-
a year ago
2022-09-28 20:11
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Sélectionner le contenu entre parenthèses
PCRE2 (PHP >=7.3)
Sélectionner le contenu entre parenthèses (parenthèses comprises)
Submitted by
scalpa
-
a year ago
2022-09-28 09:25
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Celular Brasil
PCRE2 (PHP >=7.3)
Validar celular do Brasil
Submitted by
Paulo Neves
-
a year ago
2022-09-26 15:12
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Zarf docker registry domain matcher (v2)
PCRE2 (PHP >=7.3)
Used by Zarf to swap the registry domain/port part an image url without needed the docker libraries. usage in go: // SwapHost Perform base url replacement and adds a sha1sum of the original url to the end of the src func SwapHost(src string, targetHost string) (string, error) { targetImage, err ...
Submitted by
Jonathan Perry
-
a year ago
2022-09-26 14:03
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Get project name from git url
Golang
Used by Zarf to obtain the name of a repository when given a git URL.
Submitted by
Jonathan Perry
-
a year ago
2022-09-26 13:58
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Invalid HTML syntax regex
PCRE2 (PHP >=7.3)
A bare demo of detecting syntactically invalid HTML, created for jridgewell/proposal-regexp-atomic-and-possessive#1. It's a proposal for the + quantifier modifier for ECMAScript regular expressions. Currently only properly detects invalid ending tags, and is only about having the correct syntax.
Submitted by
Keyacom
-
a year ago
2022-09-23 20:27
(Last modified a year ago)
2022-09-23 21:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Test mail
PCRE2 (PHP >=7.3)
Email test
Submitted by
anonymous
-
a year ago
2022-09-23 14:23
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Russian phone validation
PCRE2 (PHP >=7.3)
This expression validates russian phones in different formats
Submitted by
zkelo
-
a year ago
2022-09-23 09:29
(Last modified 2 days ago)
2023-10-02 21:09
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Add space after period
PCRE2 (PHP >=7.3)
Add a whitespace after a period if it is followed by a non-whitespace character
Submitted by
blacksmithop
-
a year ago
2022-09-23 06:17
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
No Squares
PCRE2 (PHP >=7.3)
Match not square brackets
Submitted by
max
-
a year ago
2022-09-22 23:27
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
AEM SPLUNK - Packages being installed
PCRE2 (PHP >=7.3)
AEM SPLUNK - Packages being installed
Submitted by
Robert Wunsch (wunsch@adobe.com)
-
a year ago
2022-09-22 13:03
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
AEM - Author & Publisher - error.log - RegEx for SPLUNK fields
PCRE2 (PHP >=7.3)
AEM - Author & Publisher - error.log - RegEx for SPLUNK fields
Submitted by
Robert Wunsch (wunsch@adobe.com)
-
a year ago
2022-09-22 13:02
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
AEM - Author & Publisher - access.log - REGEX for SPLUNK fields
PCRE2 (PHP >=7.3)
AEM - Author & Publisher - access.log - REGEX for SPLUNK fields
Submitted by
Robert Wunsch (wunsch@adobe.com)
-
a year ago
2022-09-22 13:01
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
AEM - Dispatcher - access.log - Regex for SPLUNK fields
PCRE2 (PHP >=7.3)
AEM - Dispatcher - access.log - Regex for SPLUNK fields
Submitted by
Robert Wunsch (wunsch@adobe.com)
-
a year ago
2022-09-22 13:01
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
AEM - Author & Publisher - error.log - RegEx for SPLUNK fields
PCRE2 (PHP >=7.3)
AEM - Author & Publisher - error.log - RegEx for SPLUNK fields
Submitted by
Robert Wunsch (wunsch@adobe.com)
-
a year ago
2022-09-22 13:00
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
AEM - Author & Publisher - access.log - RegEx for SPLUNK fields (fi2Bmn/1)
PCRE2 (PHP >=7.3)
AEM - Author & Publisher - access.log - RegEx for SPLUNK fields (fi2Bmn/1)
Submitted by
Robert Wunsch (wunsch@adobe.com)
-
a year ago
2022-09-22 12:59
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
AEM access.log - field extraction for SPLUNK
PCRE2 (PHP >=7.3)
AEM access.log - field extraction for SPLUNK
Submitted by
Robert Wunsch (wunsch@adobe.com)
-
a year ago
2022-09-22 12:58
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regex date_type_idSigma. OR date_type_sousType_idSigma. OR date_type_idSigma_champLibre
PCRE2 (PHP >=7.3)
Regex date_type_idSigma. OR date_type_sousType_idSigma. OR date_type_idSigma_champLibre
Submitted by
JamesAdams
-
a year ago
2022-09-22 08:38
1
...
39
40
41
42
43
44
45
...
118
灾难性回溯
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(
[
hH
]
[
tT
]
{2}
[
pP
]
:
\/\/
|
[
hH
]
[
tT
]
{2}
[
pP
]
[
sS
]
:
\/\/
)
(
(
[
A
-
Za
-
z0
-
9-~
]
+
)
.
)+
(
[
A
-
Za
-
z0
-
9-~
\\\/
]
)+
$
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
a year ago
2022-07-02 11:03