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
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
3
phone
Created
·
2015-05-07 17:14
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
Flavor
·
Python
This is simplified from my last submission.
Submitted by
Dale O'Brien
9
domain - host
Created
·
2015-09-29 17:50
Flavor
·
Python
no description available
Submitted by
anonymous
7
CSS Import
Created
·
2014-05-03 00:51
Flavor
·
Python
no description available
Submitted by
anonymous
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
1
Regular expression to remove all puncutation
Created
·
2014-06-20 07:18
Flavor
·
Python
Removes all of the puncutation present inlcuding \n,\t,\r
Submitted by
Abhinav Gupta
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
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
8
repeat group match
Created
·
2015-07-24 21:02
Flavor
·
Python
no description available
Submitted by
anonymous
10
entity
Created
·
2015-11-20 01:12
Flavor
·
Python
no description available
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
Complete imgur link regex
Created
·
2015-03-13 11:26
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
Flavor
·
Python
no description available
Submitted by
anonymous
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
3
date time
Created
·
2014-01-29 03:45
Flavor
·
Python
1/Jul/2013 03:27:12
Submitted by
himel
1
dd/mm/yyyy validation regexp
Created
·
2015-09-17 10:54
Flavor
·
Python
no description available
Submitted by
uknnown
2
postgesql
Created
·
2015-08-11 09:45
Flavor
·
Python
no description available
Submitted by
anonymous
3
Twitch URL Regex
Created
·
2015-03-15 12:53
Flavor
·
Python
Can grab all kinds of valid twitch URLs.
Submitted by
Mio
1
Parse a HTML URL
Created
·
2014-05-22 23:07
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
Flavor
·
Python
For scraping http://skepticsannotatedbible.com/
Submitted by
antaytheist-owner
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
1
REGEX
Created
·
2015-04-04 13:58
Flavor
·
Python
no description available
Submitted by
anonymous
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
0
Get any word before specific string
Created
·
2015-09-05 06:41
Flavor
·
Python
no description available
Submitted by
anonymous
-3
Matches percentage with any number of digits
Created
·
2015-06-10 19:26
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
Flavor
·
Python
no description available
Submitted by
anonymous
1
quoted string in VB.net format
Created
·
2014-05-20 11:06
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
Flavor
·
Python
no description available
Submitted by
Jacob
-2
Between two strings
Created
·
2015-10-27 19:18
Flavor
·
Python
Awesome explanation of nested lookbacks
Submitted by
OnlineCop
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
3
prices in nis
Created
·
2015-06-15 15:16
Flavor
·
Python
no description available
Submitted by
molaxx
1
States
Created
·
2015-05-06 17:38
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
Flavor
·
Python
no description available
Submitted by
anonymous
0
Find email address in a string.
Created
·
2014-06-11 17:57
Flavor
·
Python
no description available
Submitted by
anonymous
-1
Twitter #hashtags
Created
·
2013-10-17 17:40
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
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
2
Port validator
Created
·
2016-04-19 10:13
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
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
Flavor
·
Python
Get iframe src
Submitted by
Sumeet Fefar
-2
Email Validation
Created
·
2015-12-01 22:35
Flavor
·
Python
Full email validation with optional "." "-" "_"
Submitted by
Jakub Stasiak
1
Address Match
Created
·
2015-11-16 15:43
Flavor
·
Python
no description available
Submitted by
Awk
2
SED
Created
·
2015-11-12 15:42
Flavor
·
Python
no description available
Submitted by
anonymous
1
json comment - first attempt
Created
·
2015-11-05 20:27
Flavor
·
Python
no description available
Submitted by
Mark
Community Library Entry
1
Regular Expression
Created
·
2015-05-17 08:34
Flavor
·
ECMAScript (JavaScript)
/
\S.\w
+
/
gm
Open regex in editor
Description
Need everything inside this as separate variable :)
Submitted by
anonymous