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...
1
dd dd
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
IBAN regexp
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
extract price from text
PCRE (PHP <7.3)
no description available
Submitted by
mku
-
9 years ago
1
Line feeds to html paragraphs
PCRE (PHP <7.3)
Take the text from a textarea and surround text delimited with newlines with p-tags
Submitted by
Bob M
-
9 years ago
1
URL-http(s)
PCRE (PHP <7.3)
Tests for valid http or https protocol URL. *2 groups- one for protocol,domain, and any subdomains; and one for path, query, params, and fragments(if any. The following WILL match: http://foo.com/blah_blah http://foo.com/blah_blah/...
Submitted by
Brennan
-
9 years ago
1
html image tags
Python
no description available
Submitted by
Thien Ho
-
9 years ago
1
username
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
Extract domain from URL
ECMAScript (JavaScript)
Extract the domain out of an url
Submitted by
anubhava
-
9 years ago
1
xregexp
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
Exclude filename path
ECMAScript (JavaScript)
Regular expression to exclude a filename path.
Submitted by
JimiC
-
9 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
-
9 years ago
1
Singapore and Malaysia Mobile numbers
PCRE (PHP <7.3)
Singapore and Malaysia Mobile numbers
Submitted by
Harsh Gupta
-
9 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
...
845
846
847
848
849
...
902
Community Library Entry
0
Regular Expression
ECMAScript (JavaScript)
/
^
(
(
[
a
-
z0
-
9_"+-
]
+
\.
{0,1}
)*
(
[
a
-
z0
-
9_"+-
]
+
)
){1,64}
@
(
(
\[
{0,1}
(
[
0
-
9
]
{1,3}
.
){3}
[
0
-
9
]
{1,3}
\]
{0,1}
)
|
(
(
[
a
-
z0
-
9
]
[
a
-
z0
-
9_+-
]
+
)
(
\.
[
a
-
z
]
{2,}
)+
)
)
$
/
Open regex in editor
Description
Regex for email with testcase from page
https://www.softwaretestingo.com/test-cases-for-email-field/
Submitted by
BanhPow
-
2 years ago
(Last modified 2 years ago)