Please enable JavaScript to use regex101
Regular
Expressions
101
Support Regex101
Social
Info
Regex Editor
Community Library
Account
Regex Quiz
Order By
Most Recent
Most upvotes
Most downvotes
Highest Score
Lowest Score
Filter by Flavor
PCRE2 (PHP)
JavaScript
Python
Golang
Java
.NET 10.0 (C#)
Rust
POSIX ERE
POSIX BRE (grep/sed)
PCRE (Legacy)
Sponsors
Learn to code interactively with bite-sized, hands-on programming challenges.
Community Library
Search community submissions...
0/512
83
Distinguish torrent files (series vs movies)
Created
·
2014-06-26 09:59
Updated
·
2023-07-20 15:08
Type
·
Match
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
3
phone
Created
·
2015-05-07 17:14
Type
·
Match
Flavor
·
Python
matches: + example: +52 33 3884 7720 +1 770 343 5788
Submitted by
miqui
9
Extract Protocol, URL, URL Path, get parameters and hash from URI
Created
·
2014-05-22 23:34
Type
·
Match
Flavor
·
Python
This is simplified from my last submission.
Submitted by
Dale O'Brien
1
Regular expression to remove all puncutation
Created
·
2014-06-20 07:18
Type
·
Match
Flavor
·
Python
Removes all of the puncutation present inlcuding \n,\t,\r
Submitted by
Abhinav Gupta
7
CSS Import
Created
·
2014-05-03 00:51
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Anonymous
9
domain - host
Created
·
2015-09-29 17:50
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Anonymous
-3
Matches percentage with any number of digits
Created
·
2015-06-10 19:26
Type
·
Match
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
-2
Between two strings
Created
·
2015-10-27 19:18
Type
·
Substitution
Flavor
·
Python
Awesome explanation of nested lookbacks
Submitted by
OnlineCop
1
dd/mm/yyyy validation regexp
Created
·
2015-09-17 10:54
Type
·
Match
Flavor
·
Python
no description available
Submitted by
uknnown
-1
woop
Created
·
2015-02-15 22:12
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Anonymous
-3
Match substitutions
Created
·
2014-07-26 13:32
Type
·
Match
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
1
Parse a HTML URL
Created
·
2014-05-22 23:07
Type
·
Match
Flavor
·
Python
Break a URL into parts: protocol url path get parameters hash
Submitted by
Dale O'Brien
-3
TD data from html table
Created
·
2015-12-24 10:15
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Deepak Bansal
-2
Email Validation
Created
·
2015-12-01 22:35
Type
·
Match
Flavor
·
Python
Full email validation with optional "." "-" "_"
Submitted by
Jakub Stasiak
0
Get any word before specific string
Created
·
2015-09-05 06:41
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Anonymous
2
postgesql
Created
·
2015-08-11 09:45
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Anonymous
8
repeat group match
Created
·
2015-07-24 21:02
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Anonymous
1
REGEX
Created
·
2015-04-04 13:58
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Anonymous
4
Complete imgur link regex
Created
·
2015-03-13 11:26
Type
·
Match
Flavor
·
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
-2
Basic grammar for regex matching of simplistic Makefiles
Created
·
2014-08-13 01:11
Type
·
Match
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>
3
date time
Created
·
2014-01-29 03:45
Type
·
Match
Flavor
·
Python
1/Jul/2013 03:27:12
Submitted by
himel
-1
Twitter #hashtags
Created
·
2013-10-17 17:40
Type
·
Substitution
Flavor
·
Python
Using the twitter API, take a tweet object and find & link #tags to embed in HTML
Submitted by
@triplec1988
-3
IPv4 address
Created
·
2016-04-06 17:12
Type
·
Match
Flavor
·
Python
Matches any IPv4 address
Submitted by
Anonymous
-2
adsf
Created
·
2015-11-01 11:11
Type
·
Match
Flavor
·
Python
adfadfad
Submitted by
Anonymous
-2
finds the instance of two or more repeating letters
Created
·
2015-07-10 19:34
Type
·
Match
Flavor
·
Python
no description available
Submitted by
cp0153
-2
IPv4
Created
·
2015-06-19 13:07
Type
·
Match
Flavor
·
Python
allows for all legal IPv4 addresses
Submitted by
Anonymous
-2
Host and domains
Created
·
2015-06-10 18:44
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Anonymous
3
Twitch URL Regex
Created
·
2015-03-15 12:53
Type
·
Match
Flavor
·
Python
Can grab all kinds of valid twitch URLs.
Submitted by
Mio
-2
python bracketed text
Created
·
2015-01-27 21:53
Type
·
Substitution
Flavor
·
Python
why doesn't this match text in brackets?
Submitted by
Anonymous
-1
text beetween text
Created
·
2015-01-23 10:35
Type
·
Match
Flavor
·
Python
no description available
Submitted by
karol
-2
match only words consisting of 3 repeated letters, e.g. lllkkk
Created
·
2014-12-21 19:38
Type
·
Match
Flavor
·
Python
no description available
Submitted by
kali
-2
five word capture
Created
·
2014-11-28 04:40
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Anonymous
-2
link
Created
·
2014-10-06 11:34
Type
·
Match
Flavor
·
Python
no description available
Submitted by
NTP-[SADAS]
0
Find email address in a string.
Created
·
2014-06-11 17:57
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Anonymous
1
quoted string in VB.net format
Created
·
2014-05-20 11:06
Type
·
Substitution
Flavor
·
Python
Get all strings in vb.net format (even nested quotes"
Submitted by
Alan Moore (http://stackoverflow.com/questions/2148587/finding-quoted-strings-with-escaped-quotes-in-c-sharp-using-a-regular-expression) modified by j
1
IPv4 extraction
Created
·
2014-04-04 13:05
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Jacob
-2
match unescaped quotes
Created
·
2015-11-05 21:28
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Anonymous
-1
Integer or decimal number
Created
·
2015-10-30 12:30
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Rick de L
-2
match commas between sets or members, but not inside members.
Created
·
2015-10-23 16:41
Type
·
Match
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
-1
xml
Created
·
2015-09-30 05:38
Type
·
Substitution
Flavor
·
Python
no description available
Submitted by
Anonymous
-2
Prosed OFX DateTimeType pattern for v.2.1.1+
Created
·
2015-09-06 02:10
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Oleg Sakharov karpuscul@gmail.com
5
Find consecutive duplicate words
Created
·
2015-08-31 22:17
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Anonymous
-1
IP address
Created
·
2015-08-31 20:41
Type
·
Match
Flavor
·
Python
Looks for string formated like an IP address.
Submitted by
Anonymous
-1
word_to_match
Created
·
2015-08-28 12:00
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Anonymous
-1
Java single line comment matcher
Created
·
2015-08-26 21:21
Type
·
Match
Flavor
·
Python
This regex matches java line end comments started with "//" and ignores such ones that are within String literals. (NO SUFFICIENT TESTING WAS DONE TO GUARANTEE 100% SAFETY)
Submitted by
Janis Schöck
-1
bibtex entries
Created
·
2015-08-21 21:46
Type
·
Match
Flavor
·
Python
match bibtex entries
Submitted by
Sixue Qin
-2
filter
Created
·
2015-07-18 07:55
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Anonymous
-2
twitter usernames
Created
·
2015-07-10 11:15
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Anonymous
-1
date format for year 2000 above
Created
·
2015-06-18 14:50
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Anonymous
9
English date in "dd mmmm yyyy" format
Created
·
2015-05-18 19:41
Type
·
Match
Flavor
·
Python
Parse an English date following the "dd mmmm yyyy" format.
Submitted by
Tantale
Load More
Community Library Entry
0
Regular Expression
Open Workspace
/
^
(
[
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}
)
?
$
/
gm
Description
Created
·
2025-10-01 10:12
Type
·
Match
Flavor
·
PCRE2 (PHP)
Пример: "
w1@mail.com
" - рабочий Пример: "
w1@mail.com
" - не рабочий
Submitted by
Anonymous
Open Workspace