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,240 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
RegEx for Treating Express Route
ECMAScript (JavaScript)
A Regex that can be applied over the following routes pattern: GET ^\/auth\/?(?=\/|$)/generate GET ^\/auth\/?(?=\/|$)/callback Applying it inside a code, it will get like this:...
Submitted by
HorselessName
-
14 days ago
2023-11-24 04:05
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Prime number test
PCRE2 (PHP >=7.3)
Prime number test
Submitted by
anonymous
-
14 days ago
2023-11-24 01:37
(Last modified 6 days ago)
2023-12-02 04:49
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Get a canonical link from html page
PCRE2 (PHP >=7.3)
Gets the canonical link from a html page provided it has one
Submitted by
anonymous
-
14 days ago
2023-11-23 23:01
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Find all text lines after simple time code
PCRE2 (PHP >=7.3)
Given a time code caption file (not standards compliant) use this script to match all lines following a time code line You can use this regex in Notepad++ to generate a new file that only contains the matches in the form of ^(?!\d:\d{2}+).+
Submitted by
Alexander Roberts
-
14 days ago
2023-11-23 14:50
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Search disabled SSL verification
PCRE2 (PHP >=7.3)
Find SSLVerify = false
Submitted by
@Sergiomarotco
-
15 days ago
2023-11-22 16:33
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
QIF date from ISO format to French format
PCRE2 (PHP >=7.3)
Transforms an ISO date (YYY-MM-DD) into a French format date (DD/MM/YYYY). Substitute : D$3/$2/$1
Submitted by
Christian CROCHE
-
17 days ago
2023-11-20 20:32
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
QIF amount from French format to English for MS MONEY
PCRE2 (PHP >=7.3)
For a QIF file extracted from Boursorama bank account, transform the diffrent amount in French format to an English format (without thousand separator) for MS Money. ^([T\$])([-+]?)(\d*)(\s?)(\d+)(\,)(\d+)$ Substitute with $1$2$3$5.$7
Submitted by
anonymous
-
17 days ago
2023-11-20 20:29
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
חיפוש במשמעות של "או" ספרי הרמב"ם
PCRE2 (PHP >=7.3)
רוצים לחפש את המילה ספר בהתייחס לכל ספרי הרמב"ם
Submitted by
ישורון קובי
-
17 days ago
2023-11-20 20:20
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
verifyIPV6
Java 8
verificare indirizzo IPV6 (regole base)
Submitted by
Luigi Piccinni
-
17 days ago
2023-11-20 15:18
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
XML/HTML Tag selector
PCRE2 (PHP >=7.3)
Pros: Attribute-aware (but not complete parse) Content-aware (text only) Cons: Might poor performance (unnecessary matches if you work on a ssr thing)...
Submitted by
stdpi
-
18 days ago
2023-11-20 09:23
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
traveloka accomodation url
PCRE2 (PHP >=7.3)
match traveloka accomodation url
Submitted by
anonymous
-
20 days ago
2023-11-18 12:10
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Traveloka match url accomodation only
PCRE2 (PHP >=7.3)
match url for traveloka accomodation
Submitted by
anonymous
-
20 days ago
2023-11-18 12:09
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
RFC 2822 standard email validation with limit of chars in name, domain name,and domain
ECMAScript (JavaScript)
Vaild: valid.email@example.com john.doe123@example.co.uk alice_smith@company.org user1234@emailprovider.net...
Submitted by
anonymous
-
20 days ago
2023-11-18 00:28
(Last modified 20 days ago)
2023-11-18 00:37
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Email regex for JS
ECMAScript (JavaScript)
This reges do not covering long emails. It should check domian (64) and page name(255) limits.
Submitted by
SnaYQ
-
20 days ago
2023-11-17 23:55
(Last modified 20 days ago)
2023-11-18 00:36
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Akamai - Extended + Custom field + GhostIP + CacheStatus + WAF
PCRE2 (PHP >=7.3)
Akamai LDS log format - Extended + Custom field + GhostIP + CacheStatus + WAF
Submitted by
anonymous
-
20 days ago
2023-11-17 15:25
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
SUT - Package Matching
PCRE2 (PHP >=7.3)
test
Submitted by
MHE
-
21 days ago
2023-11-17 10:18
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
car licence registry (placa de carro)
ECMAScript (JavaScript)
brazilian car licence registry validation (validação de placa de carro brasileira e mercosul)
Submitted by
edurbs
-
21 days ago
2023-11-16 15:41
(Last modified 21 days ago)
2023-11-16 15:44
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
integer only
PCRE2 (PHP >=7.3)
^[0-9]+$
Submitted by
anonymous
-
22 days ago
2023-11-16 08:21
(Last modified 22 days ago)
2023-11-16 08:23
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Check Email Validity
Java 8
Regular expression to check the email syntax validity. Certainly requires improvement, but it's a good basis to work from. Work with Java and JavaScript.
Submitted by
Alain TOMASIAN <alain.tomasian@kaptus.fr>
-
23 days ago
2023-11-15 10:54
(Last modified 22 days ago)
2023-11-15 17:35
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Full name validation
ECMAScript (JavaScript)
Full name validation with latin caracters
Submitted by
edurbs
-
24 days ago
2023-11-14 13:31
(Last modified 21 days ago)
2023-11-16 15:45
1
2
3
4
5
...
762
IPv4-CIDR
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
ECMAScript (JavaScript)
/
^
(?:
(?:
1
?
\d
{1,2}
|
2
[
0
-
4
]
\d
|
25
[
0
-
5
]
)
\.
){3}
(
1
?
\d
{1,2}
|
2
[
0
-
4
]
\d
|
25
[
0
-
5
]
)
\/
(?:
[
0
-
9
]
|
[
1
-
2
]
[
0
-
9
]
|
3
[
0
-
2
]
)
$
/
mg
Open regex in editor
Description
Loading markdown...
Submitted by
fwqaaq
-
6 months ago
2023-06-05 12:57