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,020 community submitted regex patterns...
2
fffs
ECMAScript (JavaScript)
dfsfd
Submitted by
anonymous
-
9 years ago
2
US datetime
ECMAScript (JavaScript)
Validates a US mm-dd-yy(yy) with an optional hh:mm:ss time.
Submitted by
anonymous
-
9 years ago
2
desanonimyse
PCRE (PHP <7.3)
no description available
Submitted by
JB Escudié
-
9 years ago
2
match those lines whose first n chars contains 1+ non numeric
Python
1100582367|SDFDSFDSFDSFDSFDF GBC213WREW|RWEFSDFSDF 1100582377|DSFDSFDSFDSF 2NDG.S.D BIKADSFDSFDSFNO.421 1100582387|SDFSDFSDFDSF
Submitted by
sid
-
9 years ago
2
Alphanumeric only
PCRE (PHP <7.3)
Allows only Uppercase, lowercase letters and numbers
Submitted by
anonymous
-
9 years ago
2
Port validator
Python
Validates port numbers from 1 to 65535
Submitted by
Agustín Bouillet
-
9 years ago
2
Azure ARM Template Parameter Override breakdown
PCRE (PHP <7.3)
This script helps you take the ARM template parameter override line from VSTS and break each variable combo down to its own line.
Submitted by
Paul Daly
-
9 years ago
2
Azure ARM Parameter Override Reconstuct
PCRE (PHP <7.3)
This helps you take a list of ARM parameters where each pair is on its own line and combine them back to a single line so you can place them in VSTS's ARM template parameter override field.
Submitted by
Paul Daly
-
9 years ago
2
parse username with @ mention
PCRE (PHP <7.3)
no description available
Submitted by
Laracasts
-
9 years ago
2
Brazilian number phone
PCRE (PHP <7.3)
no description available
Submitted by
Marcos André
-
9 years ago
2
Regex tutorial
Java 8
Case insensitive match the whole word betwween \bword\b
Submitted by
anonymous
-
4 years ago
(Last modified a year ago)
2
Regex for real number
ECMAScript (JavaScript)
this regex can detect any real number whether it is signed or unsigned.plus it can detect real number both with and without floating point aka '.'.the numbers should be decimal number
Submitted by
Adnan nabib
-
3 years ago
2
CSS Colors: RGB(A), HSL(A), HEX(3,4,6,8), var(--tw-color), etc...
ECMAScript (JavaScript)
Versatile, multiline matching of CSS colors of many common formats, including: [x] HEX-3: #123 (equivalent to #112233) [x] HEX-4: #FA0F ( ... #FFAA00FF) [x] HEX-6: #FF3300 ( ...#F30) [x] HEX-8: #FFAA00FF ( ...#FA0F)...
Submitted by
Nicholas Berlette (@nberlette)
-
3 years ago
2
Task 4 Quiz
PCRE2 (PHP >=7.3)
It needs a major modification, since matching an integer is required. The accepted answer \d+ involves only "positive" integers. But -333 or +777 are also integers, which leads to two possible solutions with the last one being the most accurate: -?\d+ : The hyphen (optional minus sign) and a digit...
Submitted by
seQuienSoy
-
2 years ago
2
Mime type parser
.NET 7.0 (C#)
A "simple" regex to parse mime types. Handles all commonly occurring parts of a mime type string such as: Type Subtype Subtype's with an extra extension (e.g. svg+xml) (Optional input) Multiple parameters (Optional input)...
Submitted by
Vespion
-
2 years ago
(Last modified 2 years ago)
2
Discord Username (old & new)
PCRE2 (PHP >=7.3)
Accomodate for Discord's username changeover and match against either the old username or the new username. But only one or the other. Match: CesarHvl#9000 cesarhvl cesar.hvl...
Submitted by
cesarhvl
-
a year ago
2
URI Parser
ECMAScript (JavaScript)
A simple parser to exact all the components of a URI/URL as named groups
Submitted by
Vespion
-
a year ago
(Last modified a year ago)
1
phone test
PCRE (PHP <7.3)
no description available
Submitted by
cool guy
-
11 years ago
1
Date-Validation with mm/dd/yyyy or mmddyyyy or mm-dd-yyyy or m/d/yyyy
ECMAScript (JavaScript)
Date Validation with leap year handling, & it takes care of date validation in the format like :mm/dd/yyyy or mmddyyyy or mm-dd-yyyy or m/d/yyyy or m-d-yyyy. 12/01/1986 02/29/2016 02/29/2015 13/31/1986...
Submitted by
Ashish
-
9 years ago
2
HTTP url parser
PCRE (PHP <7.3)
Parses a URL to the different parts
Submitted by
AmitK
-
10 years ago
1
...
859
860
861
862
863
...
901
Community Library Entry
2
Regular Expression
PCRE (PHP <7.3)
/
^
(?<User>
[
_a
-
z0
-
9-
]
+
(
\.
[
_a
-
z0
-
9-
]
+
(?<GmailTag>
\+
[
_a
-
z0
-
9-
]
+
){1,1}
)*
)
@
(?<Host>
[
a
-
z0
-
9-
]
+
(
\.
[
a
-
z0
-
9-
]
+
)*
\.
[
a
-
z
]
{2,4}
)
$
/
i
Open regex in editor
Description
Get Gmail tag, user and domain of an email address
Submitted by
Matías Pizarro González
-
9 years ago