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,000 community submitted regex patterns...
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
Singapore and Malaysia Mobile numbers
PCRE (PHP <7.3)
Singapore and Malaysia Mobile numbers
Submitted by
Harsh Gupta
-
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
UK Postcode
PCRE (PHP <7.3)
as per the following specifications: FORMAT EXAMPLE AN NAA M1 1AA ANN NAA M60 1NW AAN NAA CR2 6XH...
Submitted by
Spluf (Cosmin Pop)
-
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
Thai mobile phone
PCRE (PHP <7.3)
Start with 0 and the second character is 6|8|9 Thai mobile phone number up to 10
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>
-
4 years ago
1
Matching decimals in european format (dot as grouping separator, comma as decimal separator)
Java 8
A regex for validating decimal numbers in the European number format (in many parts of Europe at least, including Germany). A comma is used as a separator for the decimal number, a dot as a separator for thousand places.
Submitted by
Florian Drees
-
4 years ago
(Last modified 4 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
-
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
...
844
845
846
847
848
...
900
Community Library Entry
1
Regular Expression
PCRE (PHP <7.3)
/
^
(
0
[
689
]
{1}
)+
(
[
0
-
9
]
{8}
)+
$
/
g
Open regex in editor
Description
Start with 0 and the second character is 6|8|9
Thai mobile phone number up to 10
Submitted by
anonymous
-
8 years ago