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
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 15,400 community submitted regex patterns...
0
General regular expressions
PCRE2 (PHP >=7.3)
General
Submitted by
Stavros
-
2 years ago
0
Database_Data_Type
PCRE2 (PHP >=7.3)
Database_Data_Type
Submitted by
anonymous
-
2 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
-
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
<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="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
-
2 years ago
(Last modified 2 years ago)
0
Italian phone number regex
PCRE (PHP <7.3)
Italian phone number reg
Submitted by
Ali Babayev
-
2 years ago
0
PCRE2 ipv6
PCRE2 (PHP >=7.3)
Some cases of ipv6 at string begin
Submitted by
anonymous
-
2 years ago
0
LinkedIn School Username
PCRE2 (PHP >=7.3)
x
Submitted by
anonymous
-
2 years ago
1
Worlde helper
PCRE2 (PHP >=7.3)
simple, just adjust that: contains letters "l z n" (probably can be simplified but I dont know how) exlude anywhere "rtuasgc" dictionary taken from wordle JS file
Submitted by
anonymous
-
2 years ago
0
提取src
PCRE2 (PHP >=7.3)
提取src
Submitted by
anonymous
-
2 years ago
0
Last 4 charecters
PCRE2 (PHP >=7.3)
This regex allows you to access the last 4 charecters in a string and manipulate them however you want
Submitted by
anonymous
-
2 years ago
0
Danish CPR number validation
PCRE (PHP <7.3)
CPR number is presented with or without a dash
Submitted by
anonymous
-
2 years ago
1
Numbers only (including decimals) ( JS work fine)
ECMAScript (JavaScript)
Rejects first symbol if 0 and all other non number (doesn't includes .123 )
Submitted by
Sofitt
-
2 years ago
(Last modified 2 years ago)
0
quote
PCRE2 (PHP >=7.3)
quote text
Submitted by
anonymous
-
2 years ago
0
HTML TAG Match
PCRE2 (PHP >=7.3)
Match a html tag.
Submitted by
Fernando Gaston Olivera Alaniz
-
2 years ago
1
CSV quotation mark
PCRE2 (PHP >=7.3)
See quotes that are not delimiters
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
1
No trailing spaces or extra spaces max char 200 min 2 and hyphen and & only allowed
PCRE (PHP <7.3)
No trailing spaces or extra spaces max char 200 min 2 and hyphen and & only allowed
Submitted by
Natalia zolotareva
-
2 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
-
2 years ago
0
Nom avant domaine
PCRE2 (PHP >=7.3)
sdfsdfsdfsdf
Submitted by
sdfsfsdfsdf
-
2 years ago
1
...
123
124
125
126
127
...
770
Currency with dollar sign, two decimals, negative allowed, starting with period ok
2
Regular Expression
ECMAScript (JavaScript)
/
^
(?:
[
$
]
(
\s
{0,1}
)
|)
[
+-
]
?
(
\d
{1,3}
,
?
(
\d
{3}
,
?
)*
\d
{3}
(
\.
\d
{0,2}
)?
|
\d
{1,3}
(
\.
\d
{0,2}
)?
|
\.
\d
{1,2}
?
)
$
/
gm
Open regex in editor
Description
Currency with dollar sign, two decimals, negative allowed, starting with period ok
Submitted by
Natalia Zolotareva
-
2 years ago