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
12
Conventional Commits validation
Created
·
2022-01-03 20:30
Updated
·
2022-04-05 20:20
Flavor
·
Python
This regex prevents the writing of non-standard conventional commits. I'm available on my github
Submitted by
Krisque
12
Find Reddit Threads
Created
·
2015-03-12 09:23
Flavor
·
Python
Simply searches for the thread-id in any kind of valid reddit-URL.
Submitted by
Mio
11
extract subdomain(if available) or domain from URL
Created
·
2016-04-08 13:05
Flavor
·
Python
This regex should extract the subdomain, if any, or the domain, if no subdomain is used, from an arbitrary URL
Submitted by
trevi@twanda.com
6
Find and extract email domain
Created
·
2016-04-03 17:03
Flavor
·
Python
Find and extract email domain. Ex: test@example.pt -> extract 'example.pt'
Submitted by
Fnxk
10
entity
Created
·
2015-11-20 01:12
Flavor
·
Python
no description available
Submitted by
anonymous
83
Distinguish torrent files (series vs movies)
Created
·
2014-06-26 09:59
Updated
·
2023-07-20 15:08
Flavor
·
Python
A neat regex for finding out whether a given torrent name is a series or a movie. Returns the full name of the series with the separator needed to make it pretty (ie, replace it with space or what you want). Also returns the season number or the year for the movie/series, depending on what was previously matched.
Submitted by
Firas Dib
5
Match Only Text
Created
·
2016-07-05 03:56
Flavor
·
Python
no description available
Submitted by
anonymous
5
psswd
Created
·
2016-03-24 09:04
Flavor
·
Python
no description available
Submitted by
anonymous
5
Form Tag
Created
·
2016-02-26 06:49
Flavor
·
Python
Form Tag
Submitted by
Jay Patel
5
import url image
Created
·
2015-12-18 08:44
Flavor
·
Python
import url image
Submitted by
bartimeys
7
IOS3166 Country Code Identification REGEX
Created
·
2015-06-07 04:48
Flavor
·
Python
IOS3166 Country Code Identification REGEX
Submitted by
theitgeek@recu.org.uk
7
SO: fail2ban regular to find 403 request in nginx
Created
·
2014-09-15 11:32
Updated
·
2023-07-27 20:59
Flavor
·
Python
http://stackoverflow.com/q/25778420/2072035
Submitted by
anonymous
9
English date in "dd mmmm yyyy" format
Created
·
2015-05-18 19:41
Flavor
·
Python
Parse an English date following the "dd mmmm yyyy" format.
Submitted by
Tantale
4
Equation matching (without equal)
Created
·
2015-07-01 19:50
Flavor
·
Python
use this to get value of any side of an equation. You can combine this with https://regex101.com/r/fH5kJ1/1
Submitted by
Kerosene2000
8
repeat group match
Created
·
2015-07-24 21:02
Flavor
·
Python
no description available
Submitted by
anonymous
9
domain - host
Created
·
2015-09-29 17:50
Flavor
·
Python
no description available
Submitted by
anonymous
9
Extract Protocol, URL, URL Path, get parameters and hash from URI
Created
·
2014-05-22 23:34
Flavor
·
Python
This is simplified from my last submission.
Submitted by
Dale O'Brien
3
Thorough UK Postcode Validator with In/Out code capture groups
Created
·
2016-09-30 15:51
Flavor
·
Python
A more thorough UK postcode validator tested against all UK postcodes on a regular basis, but excluding the special GIRO postcode case out of personal preference. Additionally has capture groups for the In-code and Out-code sections. Requires case insensitive matching.
Submitted by
Chris G
3
Email
Created
·
2016-09-07 03:55
Flavor
·
Python
Python
Submitted by
anonymous
3
Capture Query Strings
Created
·
2016-05-15 10:22
Flavor
·
Python
A solution for capture query params.
Submitted by
Rafael Laurindo
Community Library Entry
0
Regular Expression
Created
·
2022-01-03 00:32
Updated
·
2022-01-03 00:34
Flavor
·
Python
r"
(
(?=
\S
*?
[
A
-
Z
]
)(?=
\S
*?
[^
\w\s
]
)(?=
\S
*?
[
a
-
z
]
)(?=
\S
*?
[
0
-
9
]
)
.
{8,}
)
\S
"
gm
Open regex in editor
Description
8 char 1 special char 1 number char 1 lower char 1 upper char
Submitted by
you