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 2,180 community submitted regex patterns...
81
178 upvotes, 97 downvotes (score 58.9%) (You must be signed in to vote)
Distinguish torrent files (series vs movies)
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 prev...
Submitted by
Firas Dib
-
9 years ago
2014-06-26 09:59
(Last modified 5 months ago)
2023-07-20 15:08
3
33 upvotes, 30 downvotes (score 40.3%) (You must be signed in to vote)
phone
Python
matches: + example: +52 33 3884 7720 +1 770 343 5788
Submitted by
miqui
-
9 years ago
2015-05-07 17:14
7
30 upvotes, 23 downvotes (score 43.3%) (You must be signed in to vote)
Extract Protocol, URL, URL Path, get parameters and hash from URI
Python
This is simplified from my last submission.
Submitted by
Dale O'Brien
-
10 years ago
2014-05-22 23:34
7
20 upvotes, 13 downvotes (score 43.7%) (You must be signed in to vote)
CSS Import
Python
no description available
Submitted by
anonymous
-
10 years ago
2014-05-03 00:51
9
20 upvotes, 11 downvotes (score 46.9%) (You must be signed in to vote)
domain - host
Python
no description available
Submitted by
anonymous
-
8 years ago
2015-09-29 17:50
1
14 upvotes, 13 downvotes (score 34%) (You must be signed in to vote)
Regular expression to remove all puncutation
Python
Removes all of the puncutation present inlcuding \n,\t,\r
Submitted by
Abhinav Gupta
-
9 years ago
2014-06-20 07:18
8
13 upvotes, 5 downvotes (score 49.1%) (You must be signed in to vote)
repeat group match
Python
no description available
Submitted by
anonymous
-
8 years ago
2015-07-24 21:02
10
12 upvotes, 2 downvotes (score 60.1%) (You must be signed in to vote)
Find Reddit Threads
Python
Simply searches for the thread-id in any kind of valid reddit-URL.
Submitted by
Mio
-
9 years ago
2015-03-12 09:23
9
12 upvotes, 3 downvotes (score 54.8%) (You must be signed in to vote)
English date in "dd mmmm yyyy" format
Python
Parse an English date following the "dd mmmm yyyy" format.
Submitted by
Tantale
-
9 years ago
2015-05-18 19:41
10
12 upvotes, 2 downvotes (score 60.1%) (You must be signed in to vote)
entity
Python
no description available
Submitted by
anonymous
-
8 years ago
2015-11-20 01:12
4
9 upvotes, 5 downvotes (score 38.8%) (You must be signed in to vote)
Complete imgur link regex
Python
This regex grabs all kinds of imgur links and groups them in meaningful names aswell. This way you have full flow-control in your python-scripts.
Submitted by
Mio
-
9 years ago
2015-03-13 11:26
3
8 upvotes, 5 downvotes (score 35.5%) (You must be signed in to vote)
date time
Python
1/Jul/2013 03:27:12
Submitted by
himel
-
10 years ago
2014-01-29 03:45
6
8 upvotes, 2 downvotes (score 49%) (You must be signed in to vote)
Find consecutive duplicate words
Python
no description available
Submitted by
anonymous
-
8 years ago
2015-08-31 22:17
7
8 upvotes, 1 downvotes (score 56.5%) (You must be signed in to vote)
extract subdomain(if available) or domain from URL
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
-
8 years ago
2016-04-08 13:05
1
7 upvotes, 6 downvotes (score 29.1%) (You must be signed in to vote)
Parse a HTML URL
Python
Break a URL into parts: protocol url path get parameters hash
Submitted by
Dale O'Brien
-
10 years ago
2014-05-22 23:07
6
7 upvotes, 1 downvotes (score 52.9%) (You must be signed in to vote)
SO: fail2ban regular to find 403 request in nginx
Python
http://stackoverflow.com/q/25778420/2072035
Submitted by
anonymous
-
9 years ago
2014-09-15 11:32
(Last modified 4 months ago)
2023-07-27 20:59
3
7 upvotes, 4 downvotes (score 35.4%) (You must be signed in to vote)
Twitch URL Regex
Python
Can grab all kinds of valid twitch URLs.
Submitted by
Mio
-
9 years ago
2015-03-15 12:53
2
7 upvotes, 5 downvotes (score 32%) (You must be signed in to vote)
postgesql
Python
no description available
Submitted by
anonymous
-
8 years ago
2015-08-11 09:45
1
7 upvotes, 6 downvotes (score 29.1%) (You must be signed in to vote)
dd/mm/yyyy validation regexp
Python
no description available
Submitted by
uknnown
-
8 years ago
2015-09-17 10:54
1
6 upvotes, 5 downvotes (score 28%) (You must be signed in to vote)
REGEX
Python
no description available
Submitted by
anonymous
-
9 years ago
2015-04-04 13:58
1
2
3
4
...
109
Initials
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
.NET (C#)
@"
(?:
(?=
Medication
|
Administration
|
Record
)
\b
(
.
)
(?>
edication
|
dministration
|
ecord
)
)
"
gs
Open regex in editor
Description
Loading markdown...
Submitted by
Eddie Choong
-
a year ago
2022-10-17 02:13