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)
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
0
email matcher
Created
·
2024-05-28 16:30
Updated
·
2024-05-28 16:31
Flavor
·
PCRE2 (PHP)
match some emails and extract their local part and domain
Submitted by
dang duomg 191
0
text has numbers
Created
·
2023-08-01 06:19
Flavor
·
ECMAScript (JavaScript)
text has numbers
Submitted by
vijay
0
Twitch data capturing
Created
·
2023-07-31 20:27
Updated
·
2023-07-31 20:28
Flavor
·
ECMAScript (JavaScript)
Matches the data sent by the twitch IRC and captures into various groups
Submitted by
Bucky
0
Validate comma-separated list of values (allowed: words; digits; special characters; single non-trailing non-leading spaces;)
Created
·
2023-07-31 07:50
Flavor
·
PCRE2 (PHP)
Validate comma-separated list of values (allowed: words; digits; special characters; single non-trailing non-leading spaces;)
Submitted by
anonymous
0
Salesforce - Flow Naming Conventions
Created
·
2023-07-28 17:37
Updated
·
2023-07-28 18:34
Flavor
·
PCRE2 (PHP)
Ensure that Salesforce Flow name meets the following standards: - -
Submitted by
anonymous
0
Splitting Inconsistent Addresses
Created
·
2023-07-28 16:45
Flavor
·
PCRE2 (PHP)
This pattern matches inconsistent addresses that have various street names and coordinates. This captures the Address 1 & 2, Type of Street, Coordinates (NE, NW, SE,SW) City, State, and Full zip
Submitted by
Nadira S Fant
0
BDO client ID
Created
·
2023-07-28 12:58
Flavor
·
PCRE2 (PHP)
Validates client IDs
Submitted by
anonymous
0
Regex many
Created
·
2023-07-27 19:11
Flavor
·
PCRE2 (PHP)
Search and change many regex matches
Submitted by
anonymous
0
use-capture-groups-to-search-and-replace
Created
·
2023-07-13 14:44
Flavor
·
ECMAScript (JavaScript)
(\w+)(\s)(\w+)\2(\w+) in this exercise we have to use capture groups and then replace the string order to 'three two one'. But first, when you are using the capture group you may have asked yourself why the code below does not work: (\w+)(\s)\1\2\1 to match the sting "one two three" this is because when you do a matching group he turns himself into a variable that capture the last value from regex and try to match again the same value not the regex itself. In the assertion above, were not simple doing : ` one two three (\w+)(\s)\1\2\1 = (\w+)(\s)(\w+)(\s)(\w+) word space word space word ` but we're doing: ` one two three (\w+)(\s)\1\2\1 one space one space one ` because the \1 aways will return the value 'one' and try to match it. So to resolve this, you have to have a capture group for EACH different word.
Submitted by
gabriel silva lima
0
Additional
Created
·
2023-07-13 07:57
Updated
·
2023-07-19 09:43
Flavor
·
PCRE (Legacy)
Splitting Additionalname in Basename and Specification
Submitted by
JK
0
reuse-patterns-using-capture-groups
Created
·
2023-07-13 03:14
Flavor
·
ECMAScript (JavaScript)
resolving the free code camp reuse-patterns-using-capture-groups problem let repeatNum = "42 42 42"; let reRegex = /^(\d+)([" "])\1\2\1$/; ^ starts with (\d+) a digit with at least one char (or else will count spaces) and have a([" "])(space) after the digit and \1 to repeat the digit \2to repeat the space \1 to repeat the digit regex again and $ to garan it will stop after encountering a char different than the digit.
Submitted by
gabriel silva lima
0
Tracking Number Recognition and Parsing
Created
·
2023-07-12 16:54
Flavor
·
PCRE (Legacy)
T
Submitted by
anonymous
0
Match path that starts with
Created
·
2023-07-11 11:37
Updated
·
2023-07-13 07:57
Flavor
·
ECMAScript (JavaScript)
In my nuxt automation I want to remove src from path because nuxt don't have src dir. hence I want to remove src prefix from all path
Submitted by
JD Solanki
0
ejemplo 2
Created
·
2023-07-11 09:37
Flavor
·
PCRE2 (PHP)
este es el ejemplo de Expr numero 2
Submitted by
anonymous
0
Library catalogue (VTECH V-Lib)
Created
·
2023-07-11 02:22
Flavor
·
Python
Matches entries in a library catalogue.
Submitted by
anonymous
0
Valid Emmet Candidate before Expansion
Created
·
2023-07-10 10:41
Updated
·
2023-07-13 03:17
Flavor
·
PCRE2 (PHP)
ul>(li2>a{link$@-})2 is a valid string that can be expanded by Emmet, while `` is not.
Submitted by
Chattille
0
Html tag match
Created
·
2023-07-10 06:59
Flavor
·
ECMAScript (JavaScript)
Html tag match
Submitted by
anonymous
0
r/ProgrammerHumor comment regex
Created
·
2023-07-09 17:24
Flavor
·
Python
A regex that matches comments that adhere to the rules of r/ProgrammerHumor
Submitted by
anonymous
0
HTML5 email regex
Created
·
2023-07-09 03:48
Flavor
·
PCRE2 (PHP)
Source Mozilla.
Submitted by
anonymous
0
legal edition of DCA
Created
·
2023-07-08 09:46
Flavor
·
ECMAScript (JavaScript)
Extraigo la fecha del PDF de la edición legal del diario de Centroamérica
Submitted by
anonymous
0
RegEx for matching PDF files in browser
Created
·
2023-07-08 06:26
Updated
·
2023-10-06 05:59
Flavor
·
PCRE2 (PHP)
Made for my niche use of adding it to match either PDF files that being viewed directly from a website or when viewed from your local computer. This was done so that I can add it on my usercontent.css file in Firefox with the @-moz-document url-prefix
Submitted by
Benji The Doggy
0
Fate stay/night [HuneX/PSV]
Created
·
2023-07-08 02:52
Updated
·
2023-07-08 05:58
Flavor
·
Python
Fate stay/night PS Vita version parsing
Submitted by
anonymous
0
Fate Stay/Night (PC/JP) [Py]
Created
·
2023-07-08 02:50
Flavor
·
Python
Attempting to parse Fate/Stay Night scripts nicely
Submitted by
anonymous
0
Attribute value
Created
·
2023-07-07 15:12
Flavor
·
PCRE2 (PHP)
eeee
Submitted by
Me
0
AT+ - Image
Created
·
2023-07-07 11:19
Flavor
·
PCRE2 (PHP)
parse at+ syntax
Submitted by
Carsten
0
New Discord Username
Created
·
2023-07-07 02:09
Flavor
·
ECMAScript (JavaScript)
Validates if a username is valid or not on the new discord username system
Submitted by
anonymous
0
Old Discord Username Match
Created
·
2023-07-07 02:08
Flavor
·
ECMAScript (JavaScript)
Detect and capture every part of the old discord username system
Submitted by
N0de
0
选择题题目与选项匹配
Created
·
2023-07-07 00:59
Flavor
·
Python
对有ABCD四个选项的选择题题目进行匹配
Submitted by
Wang Miao
0
whois
Created
·
2023-07-06 15:38
Flavor
·
PCRE (Legacy)
whois find param
Submitted by
anonymous
0
Add quotes to a malformed JSON string
Created
·
2023-07-06 11:47
Flavor
·
ECMAScript (JavaScript)
This Regex allows to add double-quotes to a JSON string that is missing them. It assumes we have a space after the ":" and also after the ",".
Submitted by
anonymous
0
comma separated ESPEC
Created
·
2023-07-06 07:49
Flavor
·
Python
ESPEC
Submitted by
Ian Cole
0
Retrieve all number version from tag
Created
·
2023-07-06 06:41
Flavor
·
PCRE2 (PHP)
This regex will retrieve all number in a given tag
Submitted by
Marc Masure
0
Bangladeshi phone numbers
Created
·
2023-07-05 18:44
Updated
·
2023-07-05 18:56
Flavor
·
ECMAScript (JavaScript)
Matches all Bangladeshi SIM numbers
Submitted by
Mushfiq Talha
0
Remove .html from url
Created
·
2023-07-05 11:07
Flavor
·
PCRE2 (PHP)
I used in Nginx to rewrite the location from http://example.com/about.html to http://example.com/about
Submitted by
Vijay Amirtha Raj J
0
telegram links
Created
·
2023-07-04 18:23
Updated
·
2023-07-04 18:25
Flavor
·
PCRE2 (PHP)
.
Submitted by
AC Lover
0
CUIT Argentina sin guiones
Created
·
2023-07-03 12:38
Flavor
·
PCRE2 (PHP)
CUIT Argentina sin guiones
Submitted by
Lucas David Ferrero
0
All Strings for same-lines, Syntax or Parsing
Created
·
2023-07-02 10:16
Updated
·
2023-07-02 10:19
Flavor
·
PCRE2 (PHP)
All Strings on One Line Php java javascript python escapes all regex sq inside dq pair dq insside sq pair
Submitted by
kai gouthro
0
Nginx parse error log msg
Created
·
2023-06-30 01:40
Flavor
·
Python
Regex to parse nginx error logs, that can't be converted to json in nginx. To use with fluentbit update group labels from "?P" to "?"
Submitted by
diepes
0
NLP_Regex
Created
·
2023-06-29 15:45
Flavor
·
Python
Learning Regex for NLP
Submitted by
anonymous
0
international telephone number incl. european notation
Created
·
2023-06-29 14:13
Flavor
·
PCRE2 (PHP)
international telephone number incl. european notation
Submitted by
Florian Ledeboer
0
Валидность телефона Российской Федерации форматов "+7", "7", "8"
Created
·
2023-06-28 18:54
Flavor
·
ECMAScript (JavaScript)
Работает с форматами +7, 7, 8 Варианты валидации любые.
Submitted by
anonymous
0
request_uri_no_qs
Created
·
2023-06-28 14:55
Flavor
·
PCRE2 (PHP)
Regular expression used to get the encoded URI portion of the $request_uri when unencoded $uri breaks a reverse proxy. map $request_uri $request_uri_no_qs { "~^(?+)\?(?:.*)?" $m; default $request_uri; }
Submitted by
jpatton@gmail.com
0
Regex para Logs de Kiwi Log Forwarder
Created
·
2023-06-27 23:55
Flavor
·
Python
Los logs de Kiwi Log Forwarder no se guardan de manera correcta como un CSV, por lo que tengo la idea de con una regex vaciarlos a un CSV bien hecho para poder tener mejor visualización de estos
Submitted by
anonymous
0
MTN Momo Infos
Created
·
2023-06-27 14:29
Flavor
·
Python
A regex to extract meaningful infos from a Momo message (mobile money) which is recurrent in Africa.
Submitted by
Hans T.
0
Match Australian Adresses
Created
·
2023-06-27 07:58
Flavor
·
PCRE2 (PHP)
This Regex Matches Australian Adresses
Submitted by
anonymous
0
Catch packages from 'tdnf list' output
Created
·
2023-06-26 18:42
Flavor
·
Golang
Every valid line will be of the form: . . . NOTE: the distribution tag is expected to start with at least one letter and be followed by at least one digit.
Submitted by
anonymous
0
Camel-Case Splitter (preserves Acronyms)
Created
·
2023-06-26 18:39
Flavor
·
.NET 7.0 (C#)
Splits camel-case string and preserves acronyms
Submitted by
Tyler S.
0
Page X of X
Created
·
2023-06-26 05:40
Flavor
·
Python
Only matches patterns like "Page 1 of 1", "Page 2 of 2", "Page 3 of 3", "Page 4 of 4", "Page 106 of 106", etc. Only works when page numbers in the string are the same.
Submitted by
anonymous
0
Find last word and space of string
Created
·
2023-06-26 03:43
Updated
·
2023-06-26 03:45
Flavor
·
ECMAScript (JavaScript)
Foo Bar
Submitted by
anonymous
0
Extracting data from Authorization header
Created
·
2023-06-26 01:20
Flavor
·
PCRE2 (PHP)
Handful regex for parsing Authorization, WWW-Authenticate etc. headers
Submitted by
Alex Furnica
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