Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
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 >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 18,020 community submitted regex patterns...
2
Grabify URL Detector
PCRE2 (PHP >=7.3)
Detects any Grabify IP tracker links
Submitted by
ShadowNox
-
3 years ago
2
UUID 4
PCRE2 (PHP >=7.3)
Detects any UUID 4 strings
Submitted by
ShadowNox
-
3 years ago
2
Svelte: CSS class attribute (Svelte or HTML friendly), class:directive, TailwindCSS classes, and @apply.
ECMAScript (JavaScript)
SvelteComponent Class Directive Matching Also supports TailwindCSS-style @apply directive for the class value. class:directive={boolean} ...
Submitted by
Nicholas Berlette (@nberlette)
-
3 years ago
2
GitHub bare url to org/repo Markdown
PCRE2 (PHP >=7.3)
Convert a bare url into organization/repo format in a Markdown link.
Submitted by
anonymous
-
3 years ago
2
Markdown Heading
Java 8
Parses the text following a '#' and a space all the way up to the next return character. Additional #'s can be added for parsing of other type of headings!
Submitted by
Hansen
-
3 years ago
2
Simple URL
ECMAScript (JavaScript)
Validate an URL input.
Submitted by
@nuragic
-
3 years ago
2
Currency with dollar sign, two decimals, negative allowed, starting with period ok
ECMAScript (JavaScript)
Currency with dollar sign, two decimals, negative allowed, starting with period ok
Submitted by
Natalia Zolotareva
-
3 years ago
2
Extract parts of a URL on Python
Python
Extract parts of a URL on Python
Submitted by
dixanms
-
3 years ago
2
regex101.com id grabber
PCRE (PHP <7.3)
Grabs the ID for the regex101.com permalink to code.
Submitted by
Sasha Garan
-
3 years ago
(Last modified 3 years ago)
2
Lua Enhanced: +=
Python
Adds += to Lua.
Submitted by
anonymous
-
3 years ago
2
Delete hour range
PCRE2 (PHP >=7.3)
Select duplicate a.m. - p.m range
Submitted by
profeivan
-
3 years ago
2
Asciidoc PlantUML Block
Java 8
Regex to select PlantUML Block in Asciidoc documents
Submitted by
anonymous
-
3 years ago
2
Pattern for usual email address
PCRE2 (PHP >=7.3)
Intentionally leaves out weird stuff such as IPV4 or IPV6 for the domain part and quoted usernames with invalid chars in the addressee part. Handles internationalized domains with soft validation (only structural matching) and blocks domain parts starting or ending with dashes or containing double d...
Submitted by
Victor Schröder
-
3 years ago
2
Max 30 Characters excluding brackets
PCRE2 (PHP >=7.3)
This is a simple regex for 30 characters limit excluding brackets
Submitted by
jusuchin85
-
3 years ago
(Last modified 3 years ago)
2
Extract Rapidgator Links from a HTML web page (Works for rg.to and rapidgator.net)
PCRE2 (PHP >=7.3)
Click "open regex in editor" to open regex. Open a webpage containing Rapidgator Links - Either rg.to or rapidgator.net Right-click anywhere on the page and select "view page source" Copy the HTML markup containing the Rapidgator links to regex101.com Paste the HTML markup and set mode to match Loca...
Submitted by
SmartCoder
-
3 years ago
2
Detect RGB/RGBA colors in CSS
PCRE2 (PHP >=7.3)
JS function to convert RGB(A) to HEX color for single values: /** @param {string} color the RGB(A) color @return {string} the HEX color */ function rgba2hex(color)...
Submitted by
WinterSilence
-
2 years ago
2
US Social Security Number
PCRE2 (PHP >=7.3)
Finds a number that is 9 digits long. Can have spaces or hyphens in between the numbers and will still be found
Submitted by
anonymous
-
2 years ago
2
VKontakte wall post link regex | ВКонакте проверка ссылки на запись регулярное выражение
ECMAScript (JavaScript)
пипец капец боже мама я устал спаси госпади мою грушную дешу
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
2
Find external resources in styles
ECMAScript (JavaScript)
Finds all external resources declared as url() in styles. Handles different quote types if any, even escaped ones: url(...) url('...') url("...") url(\'...\') url(\"...\")
Submitted by
anonymous
-
2 years ago
2
Dice-Throwing notation
PCRE2 (PHP >=7.3)
You can express the required dice-throwing as usual: 1d10, 2d6, 3d8... The first part (dice number) is mandatory. So, notations like "D10" are not computed, and they must be written as 1d10 The dice number may be expressed as [number]o[number]. For example: 1o3d10. That will mark to implement a Gaus...
Submitted by
Hermes
-
2 years ago
(Last modified 2 years ago)
1
...
34
35
36
37
38
...
901
Community Library Entry
2
Regular Expression
PCRE (PHP <7.3)
/
^
(?=
.
{3,256}
$
)
(
(?:
[
a
-
z0
-
9-
]
{2,65}
\.
)?
[
a
-
z0
-
9-
]
{2,256}
\.
[
a
-
z
\.
]
{2,6}
)
$
/
img
Open regex in editor
Description
Ideal for filter Domain with or without subdomain, and length less than 256.
Submitted by
Presta-Lab
-
9 years ago