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,040 community submitted regex patterns...
0
rwd
ECMAScript (JavaScript)
rwd
Submitted by
anonymous
-
3 years ago
0
Quiz Feed – Pages Only
PCRE (PHP <7.3)
The new quiz feed pages and its sub-feeds. i.e. /quizzes/foo
Submitted by
anonymous
-
3 years ago
-2
Quizzes Feedpager – XML
PCRE (PHP <7.3)
Matches the XML pages of the /quizzes routes for feedpager
Submitted by
anonymous
-
3 years ago
0
Cbre bookingid
ECMAScript (JavaScript)
a
Submitted by
anonymous
-
3 years ago
0
Day, year and month regex
PCRE2 (PHP >=7.3)
This regex allows to match date format with the same separators
Submitted by
Cymon
-
3 years ago
0
get arrays from Json
PCRE (PHP <7.3)
get arrays from Json
Submitted by
fawaz
-
3 years ago
0
Google Analytics Pattern
ECMAScript (JavaScript)
Padrão de formatação do Google analytics usando o identificador universal UA e prevendo que a base de usuários pode crescer, conforme discusão em
Submitted by
@brunosf
-
3 years ago
0
Match CamelCase
PCRE2 (PHP >=7.3)
Matches PascalCase or CamelCase
Submitted by
anonymous
-
3 years ago
0
IPv4 non zero first and last octet
PCRE2 (PHP >=7.3)
When validating an IPv4 address I often have to reject devices that the first and last octet are 0.
Submitted by
John Cutburth
-
3 years ago
0
nr_classe
PCRE2 (PHP >=7.3)
separação de um código numérico simples
Submitted by
anonymous
-
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)
0
month with year extraction
Python
ready code
Submitted by
anonymous
-
3 years ago
0
General regular expressions
PCRE2 (PHP >=7.3)
General
Submitted by
Stavros
-
3 years ago
0
Database_Data_Type
PCRE2 (PHP >=7.3)
Database_Data_Type
Submitted by
anonymous
-
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="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="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="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)
0
Italian phone number regex
PCRE (PHP <7.3)
Italian phone number reg
Submitted by
Ali Babayev
-
3 years ago
0
PCRE2 ipv6
PCRE2 (PHP >=7.3)
Some cases of ipv6 at string begin
Submitted by
anonymous
-
3 years ago
1
...
166
167
168
169
170
...
902
Community Library Entry
5
Regular Expression
PCRE2 (PHP >=7.3)
/
(?:
http
[
s
]
?
:
\/\/
.
)?
(?:
www
\.
)?
[
-a
-
zA
-
Z0
-
9@%._
\+
~#=
]
{2,256}
\.
[
a
-
z
]
{2,6}
\b
(?:
[
-a
-
zA
-
Z0
-
9@:%_
\+
.~#?&
\/\/
=
]
*
)
/
gm
Open regex in editor
Description
Match any url in text or html (http, https)
Submitted by
Jérémy Munsch
-
3 years ago