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
2
Validate color with grb group
Created
·
2026-02-03 03:22
Updated
·
2026-02-04 03:36
Flavor
·
Golang
match: #aabbcc #abc (255,255,255) (255,255,255,255) 255,255,255 no match: #gggggg #ggg 256,256,256
Submitted by
Doyoung
1
Door_Double
Created
·
2026-01-27 07:54
Updated
·
2026-01-28 10:27
Flavor
·
Python
Regex for Door_Double
Submitted by
anonymous
1
Python -- Match container image reference parts
Created
·
2026-01-20 02:14
Updated
·
2026-01-20 02:28
Flavor
·
Python
This is a Python RE for matching different parts and combinations of various docker/container image references, as compatible with docker pull etc. Parts / Capture Groups image: # whole image repo: # everything but the tag/digest registry: # host+port host: port: name: # path within registry reference: # tag or digest (with : or @; I haven't bothered to figure out how to strip that yet) tag: digest: If it matches, it should match image, repo, and name at the very least.
Submitted by
neal-ian
1
Check valid URI Scheme according to RFC2396
Created
·
2026-01-17 07:52
Flavor
·
Golang
Simple prefix matcher for validating URI Schemes according to [RFC2396, Section 3.1]( http://www.faqs.org/rfcs/rfc2396.html#3.5:~:text=well%20as%20%22http%22%29.-,scheme%20%20%20%20%20%20%20%20%3D%20alpha%20*%28%20alpha%20%7C%20digit%20%7C%20%22%2B%22%20%7C%20%22%2D%22%20%7C%20%22.%22%20%29,-Relative%20URI%20references) Go Playground: https://go.dev/play/p/vtYEugsNAfo
Submitted by
Gwyneth Llewelyn
1
1
Created
·
2025-12-28 04:09
Flavor
·
Python
554
Submitted by
anonymous
1
AoC 2025 Day 5
Created
·
2025-12-19 23:04
Flavor
·
Python
AoC 2025 Day 5 part 1 but also works for part 2. You just don't need the IDs at the bottom for part 2
Submitted by
anonymous
1
Asw
Created
·
2025-12-17 05:38
Flavor
·
PCRE (Legacy)
``/^(?P0|1-9]\d)\.(?P0|[1-9]\d)\.(?P0|[1-9]\d)(?:-(?P(?:0|[1-9]\d|\d[a-zA-Z-)(?:\.(?:0|1-9]\d|\d[a-zA-Z-))))?(?:\+(?P[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/gmsAD
Submitted by
anonymous
1
Deucesanother
Created
·
2025-12-05 06:18
Flavor
·
PCRE (Legacy)
Fixwithpecra
Submitted by
Deuces9ers
1
Regex for MusicBrainz Picard Plugin – Title Cleaner OST
Created
·
2025-11-28 16:26
Updated
·
2025-11-28 16:26
Flavor
·
Python
One of the regular expressions I use for my plugin Title Cleaner OST.
Submitted by
nrth3rnlb
1
Posição Dianteira
Created
·
2025-11-21 16:15
Flavor
·
Python
Captura da posição dianteira e suas respectivas variações
Submitted by
Erick Bryan Cubas
1
Cube Voyager Application Headers
Created
·
2025-10-24 05:43
Flavor
·
Python
Matching Cube Voyager Application Files
Submitted by
On Dai Wai
1
dumb email
Created
·
2025-10-17 10:00
Flavor
·
Python
it is a naive email regex
Submitted by
anonymous
1
Ultimate number selecter
Created
·
2025-10-07 02:25
Updated
·
2025-10-07 06:42
Flavor
·
Python
Selects all forms of numbers, ranging from decimals, to numbers with commas
Submitted by
anonymous
1
Convetional commits
Created
·
2025-10-06 13:11
Flavor
·
Python
Convetional commits regex
Submitted by
anonymous
1
Match words from string while honoring quoted words as a single word, ignoring escaped quotes
Created
·
2025-09-12 10:06
Flavor
·
.NET 7.0 (C#)
please "\\"say 1234" thank you please "\\"say 1234" thank you
Submitted by
Herra B
1
Replace last two digits of a four digit number with 99
Created
·
2025-08-14 17:59
Updated
·
2025-08-14 18:00
Flavor
·
Python
Replaces the last two digits of any four digit number with 99. Useful for replacing chart of account codes for accounting software mapping functionalities. Helpful for ProPay.
Submitted by
Eric Higdon
1
URL matching
Created
·
2025-08-07 13:22
Flavor
·
Python
Matches URLs in texts. Forked from https://regex101.com/r/cX0pJ8/1 , then removed matching emails
Submitted by
anonymous
1
email address
Created
·
2025-08-07 13:05
Flavor
·
Python
email address
Submitted by
anonymous
1
Pixiv Profile ID Finder
Created
·
2025-07-18 19:27
Updated
·
2025-07-18 21:15
Flavor
·
Python
This is to find profile ids for pixiv.net
Submitted by
secp192k1
1
Keep Talking and Nobody Explodes - Passwords
Created
·
2025-07-18 05:15
Flavor
·
Rust
See the chapter On the Subject of Passwords in Bomb Defusal Manual
Submitted by
prprnya
1
Hex Color Validator
Created
·
2025-07-11 15:00
Flavor
·
Python
Verifies whether each input line contains a valid three- or six-digit hexadecimal number, commonly used as color codes in CSS and other technologies. Each number must begin with the "#" sign. I've seen other regexes for this which use individual expressions for a three-digit number and a six-digit number as alternates for each other. I didn't see any reason to repeat the character class twice, so I used only one pattern of three digits, which may appear one or two times. Valid Hex Color Codes #FFF #025 #F0A1FB Invalid Hex Color Codes #fffabg #abcf #12365erff
Submitted by
Mr. Lance E Sloan
1
1
Created
·
2025-07-09 00:30
Updated
·
2025-07-09 00:33
Flavor
·
Golang
https://regex101.com/r/hIak43/1
Submitted by
1
1
Chess Algebraic Notation
Created
·
2025-07-07 19:15
Flavor
·
Python
Detects chess Algebraic notation. See: https://en.wikipedia.org/wiki/Algebraic_notation_(chess) Using Regexp groups to know what information is present on the notation (pieces or move disambiguation). Only supported by Flavor that has named group verification.
Submitted by
Johan JANIN
1
Tag
Created
·
2025-07-04 07:14
Flavor
·
PCRE (Legacy)
Submitted by
anonymous
1
https://regex101.com/r/gJl8tQ/1
Created
·
2025-07-04 01:02
Flavor
·
.NET 7.0 (C#)
Submitted by
anonymous
1
RE-24806
Created
·
2025-07-03 11:56
Updated
·
2025-07-09 09:10
Flavor
·
Python
RE-24806
Submitted by
anonymous
1
RE-24812
Created
·
2025-07-03 11:55
Updated
·
2025-07-09 07:56
Flavor
·
Python
RE-24812
Submitted by
anonymous
1
RE-24799
Created
·
2025-07-03 09:36
Updated
·
2025-07-09 09:03
Flavor
·
Python
RE-24799
Submitted by
anonymous
1
RE-24793
Created
·
2025-07-03 09:07
Updated
·
2025-07-09 07:34
Flavor
·
Python
RE-24793
Submitted by
anonymous
1
RE-24781
Created
·
2025-07-03 05:26
Updated
·
2025-07-09 06:39
Flavor
·
Python
RE-24781
Submitted by
anonymous
1
RE - 24755
Created
·
2025-06-25 08:48
Flavor
·
Python
RE - 24755
Submitted by
anonymous
1
RE - 20475
Created
·
2025-06-25 07:55
Flavor
·
Python
RE - 20475
Submitted by
anonymous
1
RE - 20473
Created
·
2025-06-25 07:45
Flavor
·
Python
RE - 20473
Submitted by
anonymous
1
RE - 20485
Created
·
2025-06-24 06:29
Flavor
·
Python
RE - 20485
Submitted by
anonymous
1
RE - 20482
Created
·
2025-06-24 06:25
Flavor
·
Python
RE - 20482
Submitted by
anonymous
1
RE - 20478
Created
·
2025-06-24 06:16
Flavor
·
Python
RE - 20478
Submitted by
anonymous
1
RE - 24768
Created
·
2025-06-20 05:14
Flavor
·
Python
RE - 24768
Submitted by
anonymous
1
RE - 24761
Created
·
2025-06-20 05:00
Flavor
·
Python
RE - 24761
Submitted by
anonymous
1
RE - 21468
Created
·
2025-06-20 04:20
Flavor
·
Python
RE - 21468
Submitted by
anonymous
1
RE - 21460
Created
·
2025-06-20 03:59
Flavor
·
Python
RE - 21460
Submitted by
anonymous
1
RE - 21564
Created
·
2025-06-19 10:52
Flavor
·
Python
RE - 21564
Submitted by
anonymous
1
RE - 21558
Created
·
2025-06-19 10:40
Flavor
·
Python
RE - 21558
Submitted by
anonymous
1
RE - 21553
Created
·
2025-06-19 10:31
Flavor
·
Python
RE - 21553
Submitted by
anonymous
1
RE - 21548
Created
·
2025-06-19 10:13
Flavor
·
Python
RE - 21548
Submitted by
anonymous
1
RE - 20380
Created
·
2025-06-19 10:03
Updated
·
2025-06-30 06:27
Flavor
·
Python
RE - 20380
Submitted by
anonymous
1
17329 new
Created
·
2025-06-19 09:50
Flavor
·
Python
17329 new
Submitted by
anonymous
1
20378
Created
·
2025-06-18 11:02
Updated
·
2025-06-30 06:26
Flavor
·
Python
20378
Submitted by
anonymous
1
21537
Created
·
2025-06-18 09:03
Flavor
·
Python
21537
Submitted by
anonymous
1
RE-21534
Created
·
2025-06-18 07:26
Flavor
·
Python
Relaxed pipeline
Submitted by
PAVAN
1
Match valid Windows Relative Path strings.
Created
·
2025-06-14 21:58
Updated
·
2025-06-17 12:39
Flavor
·
.NET 7.0 (C#)
This expression will match all valid relative path formatted strings (Windows Only)
Submitted by
Futuremotiondev
Community Library Entry
0
Regular Expression
Created
·
2023-05-23 08:29
Flavor
·
.NET 7.0 (C#)
@"
(?<=
(
/
|
^
)
)(
(
(
/
|
^
)
|
(
\w
*
:
)
)(?<node>
.
*?
)
)(?=
/
|
$
)
"
gm
Open regex in editor
Description
Replace namespaces in xpath with local-name
Submitted by
pvlzh