Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
83
Distinguish torrent files (series vs movies)
Python
Match
Updated 2023-07-19 22:23
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
Python
Match
Created 2015-05-07 17:14
matches: +<country_code> <phone_number> example: +52 33 3884 7720 +1 770 343 5788
Submitted by
miqui
9
Extract Protocol, URL, URL Path, get parameters and hash from URI
Python
Match
Created 2014-05-22 23:34
This is simplified from my last submission.
Submitted by
Dale O'Brien
8
CSS Import
Python
Match
Created 2014-05-03 00:51
No description provided.
Submitted by
Anonymous
9
domain - host
Python
Match
Created 2015-09-29 17:50
No description provided.
Submitted by
Anonymous
14
Conventional Commits validation
Python
Match
Created 2022-01-03 20:30
This regex prevents the writing of non-standard conventional commits. I'm available on my github
Submitted by
Krisque
12
Find Reddit Threads
Python
Match
Created 2015-03-12 09:23
Simply searches for the thread-id in any kind of valid reddit-URL.
Submitted by
Mio
1
Regular expression to remove all puncutation
Python
Match
Created 2014-06-20 07:18
Removes all of the puncutation present inlcuding \n,\t,\r
Submitted by
Abhinav Gupta
11
extract subdomain(if available) or domain from URL
Python
Substitution
Created 2016-04-08 13:05
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
repeat group match
Python
Match
Created 2015-07-24 21:02
No description provided.
Submitted by
Anonymous
10
entity
Python
Match
Created 2015-11-20 01:12
No description provided.
Submitted by
Anonymous
9
English date in "dd mmmm yyyy" format
Python
Match
Created 2015-05-18 19:41
Parse an English date following the "dd mmmm yyyy" format.
Submitted by
Tantale
4
Complete imgur link regex
Python
Match
Created 2015-03-13 11:26
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
5
Find consecutive duplicate words
Python
Match
Created 2015-08-31 22:17
No description provided.
Submitted by
Anonymous
7
IOS3166 Country Code Identification REGEX
Python
Substitution
Created 2015-06-07 04:48
IOS3166 Country Code Identification REGEX
Submitted by
theitgeek@recu.org.uk
7
SO: fail2ban regular to find 403 request in nginx
Python
Match
Created 2014-09-15 11:32
http://stackoverflow.com/q/25778420/2072035
Submitted by
Anonymous
3
date time
Python
Match
Created 2014-01-29 03:45
1/Jul/2013 03:27:12
Submitted by
himel
7
Find and extract email domain
Python
Match
Created 2016-04-03 17:03
Find and extract email domain. Ex: test@example.pt -> extract 'example.pt'
Submitted by
Fnxk
1
dd/mm/yyyy validation regexp
Python
Match
Created 2015-09-17 10:54
No description provided.
Submitted by
uknnown
2
postgesql
Python
Match
Created 2015-08-11 09:45
No description provided.
Submitted by
Anonymous
3
Twitch URL Regex
Python
Match
Created 2015-03-15 12:53
Can grab all kinds of valid twitch URLs.
Submitted by
Mio
1
Parse a HTML URL
Python
Match
Created 2014-05-22 23:07
Break a URL into parts: protocol url path get parameters hash
Submitted by
Dale O'Brien
6
Match Only Text
Python
Match
Created 2016-07-05 03:56
No description provided.
Submitted by
Anonymous
4
Bible reference extractor
Python
Match
Created 2016-04-04 08:31
For scraping http://skepticsannotatedbible.com/
Submitted by
antaytheist-owner
1
REGEX
Python
Match
Created 2015-04-04 13:58
No description provided.
Submitted by
Anonymous
5
psswd
Python
Match
Created 2016-03-24 09:04
No description provided.
Submitted by
Anonymous
5
Form Tag
Python
Match
Created 2016-02-26 06:49
Form Tag
Submitted by
Jay Patel
5
import url image
Python
Match
Created 2015-12-18 08:44
import url image
Submitted by
bartimeys
0
Get any word before specific string
Python
Match
Created 2015-09-05 06:41
No description provided.
Submitted by
Anonymous
-3
Matches percentage with any number of digits
Python
Match
Created 2015-06-10 19:26
Only captures value for converting percentage to decimal. Returns empty if percentage but no value. no match = no percentage found
Submitted by
sharkey
-1
woop
Python
Match
Created 2015-02-15 22:12
No description provided.
Submitted by
Anonymous
1
quoted string in VB.net format
Python
Substitution
Created 2014-05-20 11:06
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
Python
Match
Created 2014-04-04 13:05
No description provided.
Submitted by
Jacob
-2
Between two strings
Python
Substitution
Created 2015-10-27 19:18
Awesome explanation of nested lookbacks
Submitted by
OnlineCop
4
Equation matching (without equal)
Python
Match
Created 2015-07-01 19:50
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
3
prices in nis
Python
Match
Created 2015-06-15 15:16
No description provided.
Submitted by
molaxx
1
States
Python
Match
Created 2015-05-06 17:38
States (US) 2 char format, matches: Ga or GA
Submitted by
miqui
2
Find any digits in string
Python
Match
Created 2015-04-11 11:31
No description provided.
Submitted by
Anonymous
0
Find email address in a string.
Python
Match
Created 2014-06-11 17:57
No description provided.
Submitted by
Anonymous
-1
Twitter #hashtags
Python
Substitution
Created 2013-10-17 17:40
Using the twitter API, take a tweet object and find & link #tags to embed in HTML
Submitted by
@triplec1988
3
Thorough UK Postcode Validator with In/Out code capture groups
Python
Match
Created 2016-09-30 15:51
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
.*(\d+).* Selects last number
Python
Match
Created 2016-09-13 20:27
No description provided.
Submitted by
Anonymous
3
Email
Python
Match
Created 2016-09-07 03:55
Python
Submitted by
Anonymous
3
Capture Query Strings
Python
Match
Created 2016-05-15 10:22
A solution for capture query params.
Submitted by
Rafael Laurindo
2
Port validator
Python
Match
Created 2016-04-19 10:13
Validates port numbers from 1 to 65535
Submitted by
Agustín Bouillet
2
match those lines whose first n chars contains 1+ non numeric
Python
Match
Created 2016-04-05 20:01
1100582367|SDFDSFDSFDSFDSFDF GBC213WREW|RWEFSDFSDF 1100582377|DSFDSFDSFDSF 2NDG.S.D BIKADSFDSFDSFNO.421 1100582387|SDFSDFSDFDSF
Submitted by
sid
3
iframe src parser
Python
Match
Created 2016-01-05 12:41
Get iframe src
Submitted by
Sumeet Fefar
-2
Email Validation
Python
Match
Created 2015-12-01 22:35
Full email validation with optional "." "-" "_"
Submitted by
Jakub Stasiak
1
Address Match
Python
Match
Created 2015-11-16 15:43
No description provided.
Submitted by
Awk
2
SED
Python
Match
Created 2015-11-12 15:42
No description provided.
Submitted by
Anonymous
Load More