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
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é
-
8 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
2
SFTP or FTP url
PCRE (PHP <7.3)
Parse an SFTP or FTP url and brak it into named capture groups.
Submitted by
Cullen Johnson
-
10 years ago
2
find numeric groups in strings
PCRE (PHP <7.3)
no description available
Submitted by
Vovan
-
10 years ago
2
Currency Amount
PCRE (PHP <7.3)
Format: x0.00 Valid: 13.37 4.20 1.00...
Submitted by
anonymous
-
10 years ago
2
Any number between 0 and 10 with 0 or 1 decimal places
PCRE (PHP <7.3)
Matches any number between 0 and 10 (inclusive) with 0 or 1 decimal places. Note that .5 will NOT be matched but 0.5 will. Also 10.X will not be matched, but 10 will.
Submitted by
Matt Coubrough
-
10 years ago
2
Currency amount without currency symbol
PCRE (PHP <7.3)
Matches numbers that are likely to by financial amount. Does not consider the type of currency.
Submitted by
elgehelge
-
10 years ago
1
...
859
860
861
862
863
...
901
Community Library Entry
2
Regular Expression
PCRE (PHP <7.3)
/
^
[
0
-
9
]
{3}
[
\
]
{0,1}
[
0
-
9
]
{3}
[
\
]
{0,1}
[
0
-
9
]
{4}
$
/
Open regex in editor
Description
Accepts spaces or not 1234567890 123 456 7890
Submitted by
Christopher Dufort
-
10 years ago