Please enable JavaScript to use regex101
Regular
Expressions
101
Support Regex101
Social
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Most upvotes
Most downvotes
Highest Score
Lowest Score
Filter by Flavor
PCRE2 (PHP)
ECMAScript (JavaScript)
Python
Golang
Java
.NET 7.0 (C#)
Rust
PCRE (Legacy)
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among community submitted regex patterns...
0/512
-3
Working With Data regex sample text
Created
·
2021-10-27 18:45
Flavor
·
PCRE2 (PHP)
This is a sample text for use at my "Working With Data" workshop session on regular expressions.
Submitted by
anonymous
-2
Iranian Mobile Numbers
Created
·
2023-06-11 10:41
Flavor
·
PCRE2 (PHP)
To Validate Iranian Operators Number Validation
Submitted by
AMAISGOD
-2
Conventional Commits commit regex
Created
·
2022-01-31 00:53
Flavor
·
PCRE2 (PHP)
https://www.conventionalcommits.org/en/v1.0.0/
Submitted by
Michael Collins
-2
smargs
Created
·
2021-03-16 00:05
Flavor
·
PCRE2 (PHP)
smargs not margins
Submitted by
rkatz
-2
From conf table to hive table
Created
·
2021-02-18 19:33
Flavor
·
PCRE2 (PHP)
no description available
Submitted by
anonymous
-2
LinuxOSVersion
Created
·
2021-02-16 10:33
Flavor
·
PCRE2 (PHP)
no description available
Submitted by
anonymous
-2
Exclude particular word in phrase
Created
·
2021-02-16 08:53
Flavor
·
PCRE2 (PHP)
this will exclude particular phrase from a line. means it will match only those line which dont have those word
Submitted by
anonymous
-2
Url regex
Created
·
2021-02-14 19:11
Flavor
·
PCRE2 (PHP)
no description available
Submitted by
anonymous
-2
Eide Chrysler New Goal
Created
·
2021-02-02 00:42
Updated
·
2021-02-02 00:44
Flavor
·
PCRE2 (PHP)
no description available
Submitted by
anonymous
-1
Bwt Double Quotes
Created
·
2023-07-16 10:15
Flavor
·
PCRE2 (PHP)
Select string between double quotes.
Submitted by
anonymous
-1
7 Days to Die replace party girl
Created
·
2023-07-14 17:11
Flavor
·
PCRE2 (PHP)
A regular expression for replacing Arlene and party girl with the lab tech model in 7 Days to Die. This ought to be applied to the file D:\Program Files (x86)\Steam\steamapps\common\7 Days To Die\Data\Config\entitygroups.xml
Submitted by
anonymous
-1
Regex example
Created
·
2023-07-13 11:02
Flavor
·
PCRE2 (PHP)
For pldi
Submitted by
PlaceReporter99
-1
i18n extract
Created
·
2023-07-13 10:08
Flavor
·
PCRE2 (PHP)
extract strings between {…} or __(…)
Submitted by
ced404
-1
Match leading number of port and replace it with another
Created
·
2023-07-13 09:06
Flavor
·
PCRE2 (PHP)
the point is to help replace leading number with another number to prevent some services uses same port
Submitted by
anonymous
-1
HZS003 - PODs (find ref)
Created
·
2023-07-13 08:33
Flavor
·
PCRE2 (PHP)
den finder referencer der starter med afdelingsnummer efterfulgt af fil-ref
Submitted by
anonymous
-1
Kaspersky Security Center KSN domains (TLS)
Created
·
2023-06-14 16:54
Flavor
·
PCRE2 (PHP)
Match a subset of Kaspersky Security Center KSN domains that use TLS port 1443 (in addition to 443) for exclusion from TLS logs
Submitted by
kernelmustard
-1
ESET Mobile Security activation domains (DNS)
Created
·
2023-06-13 14:48
Updated
·
2023-06-13 16:24
Flavor
·
PCRE2 (PHP)
Match ESET Mobile Security activation domains for exclusion from DNS logs
Submitted by
kernelmustard
-1
ESET main window link domains (DNS)
Created
·
2023-06-13 14:42
Updated
·
2023-06-13 16:24
Flavor
·
PCRE2 (PHP)
Match ESET main window link domains for exclusion from DNS logs
Submitted by
kernelmustard
-1
ESET Antispam Module v4/5 domains (DNS)
Created
·
2023-06-13 14:23
Updated
·
2023-06-13 16:22
Flavor
·
PCRE2 (PHP)
Match ESET Antispam Module v4/5 domains for exclusion from DNS logs
Submitted by
kernelmustard
-1
ESET Antispam Module v3 domains (DNS)
Created
·
2023-06-13 14:18
Updated
·
2023-06-13 16:21
Flavor
·
PCRE2 (PHP)
Match ESET Antispam Module v3 domains for exclusion from DNS logs
Submitted by
kernelmustard
-1
ESET Web/Parental Control Module domains (DNS)
Created
·
2023-06-13 13:52
Flavor
·
PCRE2 (PHP)
Match ESET Web/Parental Control Module domains for exclusion from DNS logs
Submitted by
kernelmustard
-1
ESET Advanced Machine Learning servers (DNS)
Created
·
2023-06-12 19:28
Updated
·
2023-06-13 16:00
Flavor
·
PCRE2 (PHP)
Match ESET Advanced Machine Learning servers for exclusion from DNS logs
Submitted by
kernelmustard
-1
ESET Secure Authentication Provisioning Server (TLS)
Created
·
2023-06-12 19:10
Updated
·
2023-06-13 15:58
Flavor
·
PCRE2 (PHP)
Match ESET Secure Authentication Provisioning Server domains for exclusion from TLS logs
Submitted by
kernelmustard
-1
ESET Detection Engine update servers (DNS)
Created
·
2023-06-12 18:57
Updated
·
2023-06-13 15:56
Flavor
·
PCRE2 (PHP)
Match domains of ESET Detection Engine update servers for exclusion from DNS logs
Submitted by
kernelmustard
-1
WIndows update domains (DNS)
Created
·
2023-06-12 15:31
Updated
·
2023-06-13 15:54
Flavor
·
PCRE2 (PHP)
Match Windows Update domains for exclusion from DNS logging
Submitted by
kernelmustard
-1
Kaspersky update servers
Created
·
2023-06-12 15:10
Updated
·
2023-06-13 15:53
Flavor
·
PCRE2 (PHP)
Match Kaspersky update servers for exclusion from HTTP logging
Submitted by
kernelmustard
-1
Kaspersky update domains (TLS)
Created
·
2023-06-12 15:08
Updated
·
2023-06-13 15:52
Flavor
·
PCRE2 (PHP)
Match Kaspersky update domains for exclusion from TLS logging
Submitted by
kernelmustard
-1
Discord name with both old and new name support
Created
·
2023-05-22 07:39
Flavor
·
PCRE2 (PHP)
This discord regex supports both the new and the old version of discord names. Old: NAME#[0001-9999] Between 2 and 32 characters. Any character except # is allowed New: NAME Between 2 and 32 characters. Latin, lowercase letters are allowed (a-z) All numbers are allowed. (0-9) Underscores are allowed. (_) Periods are allowed. (.) You cannot have two consecutive period characters. Ex: f.y.17 is allowed, while f.y..17 isn't. Unlike many other discord regexes, this one does not allow the #0000 tag, and it does not allow having two consecutive period characters.
Submitted by
Fy17
-1
url matcher 2.0
Created
·
2023-05-20 15:49
Flavor
·
PCRE2 (PHP)
now matches any protocol, as well as username, password, query and fragment. query is not split
Submitted by
Mitsunee
-1
phone
Created
·
2023-02-07 09:37
Flavor
·
PCRE2 (PHP)
regex for phone
Submitted by
anonymous
-1
IP6 Validator Address (Simple)
Created
·
2022-10-30 06:44
Updated
·
2022-10-30 06:45
Flavor
·
PCRE2 (PHP)
Short form validation of an IP6 address Less complex than other examples I have seen around
Submitted by
anonymous
-1
Bluerose order-code
Created
·
2022-07-15 18:57
Flavor
·
PCRE2 (PHP)
order-code 20220623-19563352 20220623-18261367 20220606-15484894 20220606-15484 20220606 20220606-15 202206 33333333-33333333333 5453345345345353434646 3463334334535 202206a 2022067-+
Submitted by
anonymous
-1
Match Consonants
Created
·
2022-06-10 19:58
Flavor
·
PCRE2 (PHP)
Use regex to test whether a letter is a consonant or not. Use /[B-DF-HJ-NP-TV-Z]/ for capitals.
Submitted by
Matthew Hiebing
-1
is
Created
·
2022-06-10 15:29
Flavor
·
PCRE2 (PHP)
Hi it is me
Submitted by
anonymous
-1
slug numeric
Created
·
2022-06-01 14:27
Flavor
·
PCRE2 (PHP)
pattern to validate a slug with numbers
Submitted by
mestri.rodrigo
-1
213
Created
·
2022-05-24 08:24
Flavor
·
PCRE2 (PHP)
12312
Submitted by
anonymous
-1
1
Created
·
2022-05-24 08:21
Flavor
·
PCRE2 (PHP)
1
Submitted by
anonymous
-1
Convert numbers-only YYYYMMDD date to dash delineated YYYY-MM-DD
Created
·
2022-05-19 21:05
Flavor
·
PCRE2 (PHP)
Convert numbers-only YYYYMMDD date to dash delineated YYYY-MM-DD
Submitted by
anonymous
-1
bl_regex_fees_types_2
Created
·
2022-03-14 10:08
Flavor
·
PCRE2 (PHP)
guif
Submitted by
guif
-1
Mr Abdul Alim (m2a)
Created
·
2021-12-08 14:38
Flavor
·
PCRE2 (PHP)
Hi. My name is Mr. Abdul Alim (m2a) in Bangladesh from district. Sirajgonj contract number (+8801882650050 htttps://www.example.com my property
Submitted by
mr abdul alim talukder
-1
T
Created
·
2021-06-29 13:02
Flavor
·
PCRE2 (PHP)
T
Submitted by
me
-1
trailing commas remover
Created
·
2021-06-01 16:07
Flavor
·
PCRE2 (PHP)
remove trailing commas on json
Submitted by
anonymous
0
Validation of Date in the format YYYY-MM-DD
Created
·
2025-11-04 10:36
Updated
·
2025-11-05 19:05
Flavor
·
PCRE2 (PHP)
Validation of Date in the format YYYY-MM-DD
Submitted by
David
0
Muy fácil
Created
·
2025-10-31 13:09
Flavor
·
PCRE2 (PHP)
acadmey
Submitted by
anonymous
0
Ni fácil ni difícil
Created
·
2025-10-31 13:02
Flavor
·
PCRE2 (PHP)
academy
Submitted by
anonymous
0
Matching and Grouping Second Degree Polynomials
Created
·
2025-10-22 18:16
Flavor
·
PCRE2 (PHP)
Matches second-degree polynomials and returns values a, b, c, sign, and 0.
Submitted by
SpiderRocket
0
^([a-zA-Z0-9_\-\.\+]+)@(([a-zA-Z0-9_\-\.]+)?([^\.])\.([a-zA-Z]{2,6})|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) ?$
Created
·
2025-10-01 10:12
Flavor
·
PCRE2 (PHP)
Пример: "w1@mail.com " - рабочий Пример: "w1@mail.com " - не рабочий
Submitted by
anonymous
0
Quiz_1
Created
·
2024-10-08 13:55
Flavor
·
PCRE2 (PHP)
Check if a string contains the word word in it (case insensitive). If you have no idea, I guess you could try /word/.
Submitted by
anonymous
0
Validates an IPv4 Address
Created
·
2024-08-26 12:48
Updated
·
2024-08-26 13:21
Flavor
·
PCRE2 (PHP)
Given a string, the regex would match if it is a valid IPv4 address.
Submitted by
A-Paint-Brush
0
test
Created
·
2024-08-23 08:23
Updated
·
2024-08-23 08:24
Flavor
·
PCRE2 (PHP)
test
Submitted by
anonymous
Load More
Community Library Entry
0
Regular Expression
Created
·
2022-09-23 14:23
Flavor
·
PCRE2 (PHP)
/
^
(
(
[^
<>()
\[\]\\
.,;:
\s
@"
]
+
(
\.
[^
<>()
\[\]\\
.,;:
\s
@"
]
+
)*
)
|
(
"
.
+
"
)
)
@
(
(
\[
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
]
)
|
(
(
[
a
-
zA
-
Z
\-
0
-
9
]
+
\.
)+
[
a
-
zA
-
Z
]
{2,}
)
)
$
/
gm
Open regex in editor
Description
Email test
Submitted by
anonymous