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
-3
IPv4 address
Created
·
2016-04-06 17:12
Flavor
·
Python
Matches any IPv4 address
Submitted by
anonymous
-3
TD data from html table
Created
·
2015-12-24 10:15
Flavor
·
Python
no description available
Submitted by
Deepak Bansal
-3
Matches percentage with any number of digits
Created
·
2015-06-10 19:26
Flavor
·
Python
Only captures value for converting percentage to decimal. Returns empty if percentage but no value. no match = no percentage found
Submitted by
sharkey
-3
Match substitutions
Created
·
2014-07-26 13:32
Flavor
·
Python
Match regular expressions substitutions, I personally use this to perform my validate if it is a substitution, then call re.sub() on it.
Submitted by
Zarthus
-2
rustyms: pro forma single modification
Created
·
2023-06-21 21:59
Flavor
·
Rust
The regex to match a single pro forma modification with all its intricacies.
Submitted by
Douwe Schulte
-2
Iranian Mobile Numbers
Created
·
2023-06-11 10:41
Flavor
·
PCRE2 (PHP)
To Validate Iranian Operators Number Validation
Submitted by
AMAISGOD
-2
Parsing result of SQL Server version (SELECT @@VERSION)
Created
·
2023-02-15 21:12
Flavor
·
.NET 7.0 (C#)
Parses MS SQL Server version returned from executing SELECT @@version
Submitted by
M Rivas
-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
-2
phone number
Created
·
2016-07-19 04:29
Flavor
·
Python
An extremely complete regex, that... Accepts international phones and most of regional phone numbers; Accepts phone numbers with/without "+", with/without space or "-" in the middle of the phone, and more. Gets groups of all important data of the phone number (local code, country code and the phone number itself)
Submitted by
@thegamerbr1
-2
Email Validation
Created
·
2015-12-01 22:35
Flavor
·
Python
Full email validation with optional "." "-" "_"
Submitted by
Jakub Stasiak
-2
match unescaped quotes
Created
·
2015-11-05 21:28
Flavor
·
Python
no description available
Submitted by
anonymous
-2
adsf
Created
·
2015-11-01 11:11
Flavor
·
Python
adfadfad
Submitted by
anonymous
-2
Between two strings
Created
·
2015-10-27 19:18
Flavor
·
Python
Awesome explanation of nested lookbacks
Submitted by
OnlineCop
-2
match commas between sets or members, but not inside members.
Created
·
2015-10-23 16:41
Flavor
·
Python
matches only those commas that are between sets, or between members of a set. does not match commas that are inside members.
Submitted by
Amrit Kohli
-2
Prosed OFX DateTimeType pattern for v.2.1.1+
Created
·
2015-09-06 02:10
Flavor
·
Python
no description available
Submitted by
Oleg Sakharov karpuscul@gmail.com
-2
Validation of code ATECO Italian
Created
·
2015-08-19 12:09
Flavor
·
Python
/* -- This is a RegEx for validating one Italian ATECO code. -- For original specification visit: http://www.istat.it/it/archivio/17888 -- Valid: */ 1 01 01.2 01.02 01.02.3 01.02.03 // Not Valid: a asc 0123 012.3 013.456 123456 01/02/03
Submitted by
Marco Tonchella with the help of this Comunity that thanks a lot.
-2
filter
Created
·
2015-07-18 07:55
Flavor
·
Python
no description available
Submitted by
anonymous
-2
checklists item
Created
·
2015-07-15 13:25
Flavor
·
Python
checklists item
Submitted by
Tobias Hochgürtel
-2
finds the instance of two or more repeating letters
Created
·
2015-07-10 19:34
Flavor
·
Python
no description available
Submitted by
cp0153
-2
twitter usernames
Created
·
2015-07-10 11:15
Flavor
·
Python
no description available
Submitted by
anonymous
-2
IPv4
Created
·
2015-06-19 13:07
Flavor
·
Python
allows for all legal IPv4 addresses
Submitted by
anonymous
-2
Host and domains
Created
·
2015-06-10 18:44
Flavor
·
Python
no description available
Submitted by
anonymous
-2
python bracketed text
Created
·
2015-01-27 21:53
Flavor
·
Python
why doesn't this match text in brackets?
Submitted by
anonymous
-2
match only words consisting of 3 repeated letters, e.g. lllkkk
Created
·
2014-12-21 19:38
Flavor
·
Python
no description available
Submitted by
kali
-2
five word capture
Created
·
2014-11-28 04:40
Flavor
·
Python
no description available
Submitted by
anonymous
-2
link
Created
·
2014-10-06 11:34
Flavor
·
Python
no description available
Submitted by
NTP-[SADAS]
-2
eee
Created
·
2014-09-24 14:21
Flavor
·
Python
no description available
Submitted by
anonymous
-2
Basic grammar for regex matching of simplistic Makefiles
Created
·
2014-08-13 01:11
Flavor
·
Python
This expression should both normal and wildcard targets and rules wrapped in simple sub-shell or varriable substitution enclosures.
Submitted by
Robert Butler <me@r-butler.net>
-2
example
Created
·
2014-07-28 21:44
Flavor
·
Python
match
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
Load More
Community Library Entry
0
Regular Expression
Created
·
2023-06-09 06:36
Flavor
·
.NET 7.0 (C#)
@"
^
(?=
(?<http>
(?:
https
?
:
\/\/
){1}(?:
www
\.
)?
)?
)(?
(?=
\k<http>
?
(?<ipaddr>
(?:
\d
{1,3}
\.
){3}
\d
{1,3}
(?:
\:
\d
{1,5}
)?
)
)
\k<http>
?
\k<ipaddr>
(?:
\.
[
\w
]
{1,9}
)?
|
\k<http>
(?:
[
\w
]
\.
?
){1,255}
\.
[
\w
]
{1,9}
)(?:
\/
.
*
)?
$
"
gm
Open regex in editor
Description
Can be used to validate on URL's.
Submitted by
anonymous