Please enable JavaScript to use regex101
Regular
Expressions
101
Support Regex101
Social
Info
Regex Editor
Community Patterns
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
PCRE (Legacy)
Sponsors
Fewer distractions and more power with regex101 pro. Upgrade 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
13
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
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
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
Load More
Community Library Entry
0
Regular Expression
Created
·
2022-10-14 03:22
Updated
·
2022-10-14 03:23
Flavor
·
PCRE2 (PHP)
/
(?:
без
|
бес
|
в
|
во
|
воз
|
вос
|
возо
|
вз
|
вс
|
вы
|
до
|
за
|
из
|
ис
|
изо
|
на
|
наи
|
недо
|
над
|
надо
|
не
|
низ
|
нис
|
низо
|
о
|
об
|
обо
|
обез
|
обес
|
от
|
ото
|
па
|
пра
|
по
|
под
|
подо
|
пере
|
пре
|
пред
|
предо
|
при
|
про
|
раз
|
рас
|
разо
|
с
|
со
|
су
|
через
|
черес
|
чрез
|
а
|
ана
|
анти
|
архи
|
гипер
|
гипо
|
де
|
дез
|
дис
|
ин
|
интер
|
инфра
|
квази
|
кило
|
контр
|
макро
|
микро
|
мега
|
мата
|
мульти
|
орто
|
пан
|
пара
|
пост
|
прото
|
ре
|
суб
|
супер
|
транс
|
ультра
|
зкстра
|
экс
|
(?<=
\s
)
)
[
ъь
]
?
(?:
[
хx
][
уy
][
ейiяyи
]
|
[
pп
][
иёе
][
zзsсc
][
dд
]
|
[
eе
][
лl
][
dд
]
|
[
еёeiи
][
бb
]
|
шлю
|
твар
|
хер
|
мраз
|
шалав
|
манд
|
сипов
|
секел
|
поц
|
дроч
|
залуп
|
минд
?
ж
|
пид
[
оа
]
|
курв
|
сперм
|
г
[
ао
]
нд
|
менстр
|
кун
[
аи
]
|
сра
[
тл
]
|
сса
[
тл
]
|
бзд
|
перд
|
дри
(?:
ст
|
щ
)
|
говн
|
жоп
|
целк
|
трах
|
харит
|
минет
|
блев
|
малаф
|
вагин
)(?:
адь
|
ак
|
алей
|
ан
|
ян
|
анин
|
янин
|
анк
|
янк
|
ар
|
арь
|
ариц
|
арк
|
ач
|
ени
|
ани
|
еств
|
ств
|
есть
|
ость
|
ец
|
к
|
изм
|
изн
|
ик
|
ник
|
нин
|
ин
|
атин
|
ист
|
иц
|
ниц
|
их
|
л
|
лк
|
льн
|
льник
|
льщик
|
льщиц
|
н
|
ог
|
г
|
р
|
от
|
ет
|
тель
|
итель
|
ун
|
чик
|
щик
|
чиц
|
ыш
|
ал
|
ел
|
аст
|
ат
|
ев
|
ов
|
енн
|
онн
|
енск
|
инск
|
ив
|
ит
|
овит
|
лив
|
шн
|
оват
|
еват
|
тельн
|
уч
|
юч
|
яч
|
чат
|
чив
|
а
|
я
|
е
|
и
|
нича
?
|
ну
|
ова
|
ева
|
ствова
|
ся
|
сь
|
о
|
ск
|
жды
|
учи
|
ючи
|
то
|
либо
|
нибудь
|
ание
|
ение
|
ба
|
ь
|
исса
|
эсса
|
ива
|
ествова
|
изова
|
ирова
|
изирова
|
ства
|
ка
|
яка
|
ича
|
б
|
об
|
ытьб
|
в
|
ав
|
ощав
|
овлив
|
елив
|
члив
|
овь
|
o
|
тв
|
овств
|
инств
|
тельств
|
ляв
|
аг
|
инг
|
ург
|
уг
|
ыг
|
д
|
ад
|
иад
|
арад
|
оид
|
ядь
|
ое
|
ые
|
аж
|
ёж
|
ёжь
|
оз
|
ки
|
очки
|
ушки
|
нюшки
|
унюшки
|
еньки
|
ошеньки
|
охоньки
|
ами
|
ками
|
ай
|
атай
|
ей
|
ачей
|
ий
|
овий
|
стви
|
ни
|
ани
|
овани
|
ени
|
e
|
арий
|
ери
|
орий
|
ти
|
т
|
ци
|
аци
|
изаци
|
ици
|
нци
|
енци
|
ачий
|
ичий
|
a
|
ой
|
кой
|
уй
|
тяй
|
чак
|
авк
|
овк
|
ловк
|
анек
|
енек
|
онек
|
ышек
|
ежк
|
евик
|
овник
|
еник
|
ейник
|
арник
|
атник
|
истик
|
овщик
|
айк
|
ейк
|
инк
|
онк
|
унк
|
ок
|
онок
|
чонок
|
ушок
|
ерк
|
урк
|
вск
|
евск
|
овск
|
еск
|
ческ
|
ическ
|
истичес
|
лезск
|
эзск
|
йск
|
ейск
|
ийск
|
имск
|
нск
|
анск
|
ианск
|
унск
|
тельск
|
етк
|
отк
|
ютк
|
ук
|
чук
|
ацк
|
ецк
|
чк
|
ачк
|
ечк
|
ичка
|
очк
|
шк
|
ашк
|
ёшк
|
ишка
|
ишко
|
ушк
|
ышк
|
ык
|
ульк
|
усеньк
|
ошеньк
|
оньк
|
охоньк
|
юк
|
як
|
няк
|
ль
|
ла
|
ло
|
аль
|
овал
|
ёл
|
ель
|
ил
|
ол
|
оль
|
ул
|
ыль
|
онизм
|
им
|
ом
|
м
|
ком
|
иком
|
ышком
|
няком
|
уном
|
ишом
|
ым
|
нь
|
уган
|
иан
|
овиан
|
лан
|
ман
|
ебн
|
обн
|
евн
|
ивн
|
овн
|
ень
|
ен
|
ён
|
мен
|
смен
|
яжн
|
знь
|
езн
|
овизн
|
озн
|
иозн
|
бин
|
овин
|
лин
|
елин
|
нин
|
жан
|
чан
|
овчан
|
ичан
|
инчан
|
тян
|
итян
|
чин
|
щин
|
овщин
|
льщин
|
йн
|
ейн
|
нн
|
анн
|
ованн
|
ированн
|
ённ
|
овенн
|
ственн
|
менн
|
ионн
|
ационн
|
он
|
арн
|
орн
|
сн
|
снь
|
отн
|
ятн
|
ичн
|
иничн
|
очн
|
ашн
|
ишн
|
ышн
|
альн
|
идальн
|
иальн
|
ональн
|
уальн
|
ельн
|
абельн
|
ибельн
|
ительн
|
ильн
|
ынь
|
иян
|
ко
|
очко
|
енько
|
ошенько
|
онько
|
охонько
|
но
|
овато
|
атарь
|
ер
|
p
|
онер
|
мейстер
|
up
|
ор
|
вор
|
тор
|
атор
|
итор
|
ур
|
тур
|
amyp
|
итур
|
ырь
|
яр
|
с
|
ис
|
анс
|
есс
|
ус
|
ариус
|
ть
|
am
|
иат
|
дцать
|
надцать
|
евт
|
итет
|
нит
|
инит
|
ант
|
ент
|
мент
|
амент
|
емент
|
оть
|
иот
|
имость
|
ность
|
нность
|
енность
|
тость
|
ут
|
у
|
y
|
ку
|
еньку
|
оньку
|
ому
|
ану
|
оту
|
х
|
ах
|
ках
|
ох
|
ух
|
ц
|
авец
|
овец
|
лец
|
омец
|
нец
|
енец
|
инец
|
овиц
|
лиц
|
овниц
|
ениц
|
атниц
|
униц
|
ичниц
|
очниц
|
ешниц
|
льниц
|
тельниц
|
льц
|
ч
|
ич
|
евич
|
ович
|
нич
|
ыч
|
ш
|
аш
|
иш
|
айш
|
ейш
|
ошь
|
ош
|
уш
|
оныш
|
ащ
|
ищ
|
ище
|
ища
|
бищ
|
овищ
|
лищ
|
ущ
|
еющ
|
ы
|
ажды
|
ою
|
ую
|
остью
|
мя
|
ая
|
ее
|
ше
|
ший
|
ши
|
вши
|
вш
|
ёх
|
до
|
по
|
ему
|
рас
|
(?=
\W
)
)+(?:
[
ьоеамийу
]
|
ам
|
ами
|
ас
|
am
|
ax
|
ая
|
её
|
ек
|
ей
|
ем
|
еми
|
емя
|
ex
|
ею
|
ёт
|
ёте
|
ёх
|
ёшь
|
ие
|
ий
|
им
|
ими
|
ит
|
ите
|
их
|
ишь
|
ию
|
jу
|
ми
|
мя
|
ов
|
ого
|
ое
|
оё
|
ой
|
ом
|
ому
|
ою
|
cm
|
ум
|
умя
|
ут
|
ух
|
ую
|
шь
|
(?=
\W
)
)
/
gmi
Open regex in editor
Description
Матчит русские маты
Submitted by
piterden