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
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
Community Patterns
Search among 5,760 community submitted regex patterns...
1
Find untranslated strings, angular
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
allow only alpabets digits and special characters
ECMAScript (JavaScript)
allow only alpabets digits and special characters
Submitted by
anonymous
-
8 years ago
1
email bunch
ECMAScript (JavaScript)
to check email bunch with commas
Submitted by
jaswant singh
-
8 years ago
1
dd dd
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
IBAN regexp
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
username
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
Extract domain from URL
ECMAScript (JavaScript)
Extract the domain out of an url
Submitted by
anubhava
-
8 years ago
1
xregexp
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
Exclude filename path
ECMAScript (JavaScript)
Regular expression to exclude a filename path.
Submitted by
JimiC
-
8 years ago
1
Get the hash of an URL
ECMAScript (JavaScript)
This ER is nice to get a hash from URL, I used today to pass the name of an bootstrap TAB and set the focus when the page loads. I did it using the Replace of JavaScript.
Submitted by
Marcelo Sabadini
-
8 years ago
1
Arabic and English
ECMAScript (JavaScript)
Matches Arabic and English and all other languages that does not use the special characters.
Submitted by
Kishore
-
8 years ago
1
Positive number - currency format (1234567890.12)
ECMAScript (JavaScript)
Positive number with 10 digits before decimal point (possible zeros in front) and 0-2 digits after (possible trailing zeros).
Submitted by
Evgeny Sinitsyn
-
8 years ago
1
Replace HTML Links with the contaioning text
ECMAScript (JavaScript)
no description available
Submitted by
WBS
-
8 years ago
1
tags
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
Date - Extract & Validate - Fully tested - Format YYYY-MM-DD (dynamic parts separator / can use a different separator)
ECMAScript (JavaScript)
A fully tested regex that extracts and validates date parts using named capturing groups. \ Validations: Year must be preceded by nothing or a non-digit character...
Submitted by
Elie Grenon (DrunkenPoney) <elie.grenon.1@gmail.com>
-
3 years ago
1
Test expression
PCRE2 (PHP >=7.3)
To find at most 3 a in string
Submitted by
anonymous
-
3 years ago
1
PHP North American Phone Number
PCRE2 (PHP >=7.3)
Format phone numbers to look nice! E.g. 12345678900 --> +1(234)-567-8900 Matches with most ways numbers are stored 1.234.567.8900 1 234 567 8900...
Submitted by
Mendel Groner
-
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
-
a year 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
-
2 years ago
(Last modified 2 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
-
2 years ago
(Last modified 2 years ago)
1
...
20
21
22
23
24
...
288
Numbers or Fractions
0
Regular Expression
ECMAScript (JavaScript)
/
[
-
]
?
[
0
-
9
]
+
[
,.
]
?
[
0
-
9
]
*
(
[
\/
]
[
0
-
9
]
+
[
,.
]
?
[
0
-
9
]
*
)*
/
gm
Open regex in editor
Description
Matches integer numbers, floats and fractions of floats. I.e. "2", "-3.456", "3/4", "2.1/8".
Submitted by
anonymous
-
4 years ago