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 7.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
9
domain - host
Created
·
2015-09-29 17:50
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Anonymous
7
CSS Import
Created
·
2014-05-03 00:51
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Anonymous
13
Conventional Commits validation
Created
·
2022-01-03 20:30
Updated
·
2022-04-05 20:20
Type
·
Match
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
Type
·
Match
Flavor
·
Python
Simply searches for the thread-id in any kind of valid reddit-URL.
Submitted by
Mio
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
11
extract subdomain(if available) or domain from URL
Created
·
2016-04-08 13:05
Type
·
Substitution
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
8
repeat group match
Created
·
2015-07-24 21:02
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Anonymous
10
entity
Created
·
2015-11-20 01:12
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
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
5
Find consecutive duplicate words
Created
·
2015-08-31 22:17
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Anonymous
7
IOS3166 Country Code Identification REGEX
Created
·
2015-06-07 04:48
Type
·
Substitution
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
Type
·
Match
Flavor
·
Python
http://stackoverflow.com/q/25778420/2072035
Submitted by
Anonymous
3
date time
Created
·
2014-01-29 03:45
Type
·
Match
Flavor
·
Python
1/Jul/2013 03:27:12
Submitted by
himel
1
dd/mm/yyyy validation regexp
Created
·
2015-09-17 10:54
Type
·
Match
Flavor
·
Python
no description available
Submitted by
uknnown
2
postgesql
Created
·
2015-08-11 09:45
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
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
4
Bible reference extractor
Created
·
2016-04-04 08:31
Type
·
Match
Flavor
·
Python
For scraping http://skepticsannotatedbible.com/
Submitted by
antaytheist-owner
6
Find and extract email domain
Created
·
2016-04-03 17:03
Type
·
Match
Flavor
·
Python
Find and extract email domain. Ex: test@example.pt -> extract 'example.pt'
Submitted by
Fnxk
1
REGEX
Created
·
2015-04-04 13:58
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Anonymous
5
Match Only Text
Created
·
2016-07-05 03:56
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Anonymous
5
psswd
Created
·
2016-03-24 09:04
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Anonymous
5
Form Tag
Created
·
2016-02-26 06:49
Type
·
Match
Flavor
·
Python
Form Tag
Submitted by
Jay Patel
5
import url image
Created
·
2015-12-18 08:44
Type
·
Match
Flavor
·
Python
import url image
Submitted by
bartimeys
0
Get any word before specific string
Created
·
2015-09-05 06:41
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
-1
woop
Created
·
2015-02-15 22:12
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
Between two strings
Created
·
2015-10-27 19:18
Type
·
Substitution
Flavor
·
Python
Awesome explanation of nested lookbacks
Submitted by
OnlineCop
4
Equation matching (without equal)
Created
·
2015-07-01 19:50
Type
·
Match
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
3
prices in nis
Created
·
2015-06-15 15:16
Type
·
Match
Flavor
·
Python
no description available
Submitted by
molaxx
1
States
Created
·
2015-05-06 17:38
Type
·
Match
Flavor
·
Python
States (US) 2 char format, matches: Ga or GA
Submitted by
miqui
2
Find any digits in string
Created
·
2015-04-11 11:31
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Anonymous
0
Find email address in a string.
Created
·
2014-06-11 17:57
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Anonymous
-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
Thorough UK Postcode Validator with In/Out code capture groups
Created
·
2016-09-30 15:51
Type
·
Match
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
Type
·
Match
Flavor
·
Python
Python
Submitted by
Anonymous
3
Capture Query Strings
Created
·
2016-05-15 10:22
Type
·
Match
Flavor
·
Python
A solution for capture query params.
Submitted by
Rafael Laurindo
2
Port validator
Created
·
2016-04-19 10:13
Type
·
Match
Flavor
·
Python
Validates port numbers from 1 to 65535
Submitted by
Agustín Bouillet
2
match those lines whose first n chars contains 1+ non numeric
Created
·
2016-04-05 20:01
Type
·
Match
Flavor
·
Python
1100582367|SDFDSFDSFDSFDSFDF GBC213WREW|RWEFSDFSDF 1100582377|DSFDSFDSFDSF 2NDG.S.D BIKADSFDSFDSFNO.421 1100582387|SDFSDFSDFDSF
Submitted by
sid
3
iframe src parser
Created
·
2016-01-05 12:41
Type
·
Match
Flavor
·
Python
Get iframe src
Submitted by
Sumeet Fefar
-2
Email Validation
Created
·
2015-12-01 22:35
Type
·
Match
Flavor
·
Python
Full email validation with optional "." "-" "_"
Submitted by
Jakub Stasiak
1
Address Match
Created
·
2015-11-16 15:43
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Awk
2
SED
Created
·
2015-11-12 15:42
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Anonymous
1
json comment - first attempt
Created
·
2015-11-05 20:27
Type
·
Match
Flavor
·
Python
no description available
Submitted by
Mark
Load More
Community Library Entry
0
Regular Expression
Open Workspace
/
^
(
help
|
support
|
int
\.
form
)
\.
eset
\.
com
$
/
gmi
Description
Created
·
2023-06-14 14:47
Type
·
Match
Flavor
·
PCRE2 (PHP)
Match ESET ESET Online Help and Knowledgebase domains for exclusion from DNS logs
Submitted by
kernelmustard
Open Workspace