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
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
1
tiktok video id
ECMAScript (JavaScript)
get tiktok video id https://m.tiktok.com/h5/share/usr/6641141594707361797.html https://m.tiktok.com/v/6749869095467945218.html https://www.tiktok.com/@cchelseam..eow/video/6751181801206729990 https://www.tiktok.com/embed/6567659045795758085...
Submitted by
threedot
-
2 years ago
1
<input type="week" /> pattern
ECMAScript (JavaScript)
As 'week' input doesn't have a [pattern] attribute, you can check its value with this RegExp. Does not check if the given year has 52 or 53 weeks.
Submitted by
Ann MB
-
3 years ago
(Last modified 3 years ago)
1
<input type="datetime-local" /> pattern
ECMAScript (JavaScript)
As 'datetime-local' input doesn't have a [pattern] attribute, you can check its value with this RegExp. Does not check if the given day corresponds to its month . Ex : 2019-02-30 will be considered as correct
Submitted by
Ann MB
-
3 years ago
(Last modified 3 years ago)
1
<input type="date" /> pattern
ECMAScript (JavaScript)
As 'date' input doesn't have a [pattern] attribute, you can check its value with this RegExp. Does not check if the given day corresponds to its month. Ex : 1989-03-30 will be considered as correct
Submitted by
Ann MB
-
3 years ago
(Last modified 3 years ago)
1
<input type="time" /> pattern
ECMAScript (JavaScript)
As 'time' input doesn't have a [pattern] attribute, you can check its value with this RegExp. You must provide hours and minutes. Seconds and milliseconds are optional. To "activate" seconds on the input, give it the step="" attribute with a number reprensenting the incrementation in seconds....
Submitted by
Ann MB
-
3 years ago
(Last modified 3 years ago)
1
<input type="number" /> pattern
ECMAScript (JavaScript)
As 'number' is not implemented by all browsers, you can check your value with this RegExp.
Submitted by
Ann MB
-
3 years ago
(Last modified 3 years ago)
1
Password - mot de passe
PCRE2 (PHP >=7.3)
1 caractère minuscule minimum 1 caractère majuscule minimum 1 chiffre minimum 1 caractère spécial minimum pas d'espace 8 caractères minimum en tout
Submitted by
Sofiane
-
2 years ago
1
Decimal (with dot)
ECMAScript (JavaScript)
Decimal with a dot, if has a dot it needs a number following it
Submitted by
anonymous
-
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
1
Türkiye Telefon Numarası Kontrolü
ECMAScript (JavaScript)
Türkiye'nin mobil telefonlarının desenini kontrol eder. Örneğin; 555-123-45-67 0 555 123 45 67 +905551234567...
Submitted by
Furkan Rehber
-
3 years ago
1
...
71
72
73
74
75
...
901
Community Library Entry
1
Regular Expression
PCRE (PHP <7.3)
/
(?:
\?
|
\&
)
(?<key>
[
\w
]
+
)
=
(?<value>
[
\w
+,-
]
+
)
(?:
\:
?
)
(?<option>
[
\w
,
]
*
)
/
g
Open regex in editor
Description
This regular expression is used to extract google font information from the embeded url
Submitted by
anonymous
-
10 years ago