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 17,660 community submitted regex patterns...
19
Between tags content
PCRE (PHP <7.3)
no description available
Submitted by
Agustín Bouillet
-
9 years ago
17
Capture comma separated numbers
PCRE (PHP <7.3)
Capture comma separated numbers, no matter if there are spaces before or after the commas.
Submitted by
Fernando Nunes
-
9 years ago
86
Password Validation
ECMAScript (JavaScript)
Checks that a password has a minimum of 6 characters, at least 1 uppercase letter, 1 lowercase letter, and 1 number with no spaces.
Submitted by
Christian Klemp
-
9 years ago
31
ninite
PCRE (PHP <7.3)
no description available
Submitted by
peek
-
9 years ago
29
Wrap long string to spec length
PCRE (PHP <7.3)
no description available
Submitted by
fullpipe
-
11 years ago
11
find all link(<a>) tags expect your links in href attribute
ECMAScript (JavaScript)
YourLink - not found AnotherLink - found
Submitted by
KoT
-
9 years ago
16
IPv4
PCRE (PHP <7.3)
no description available
Submitted by
robwa
-
8 years ago
10
Just validate one sequence of
PCRE (PHP <7.3)
sdfs sdfs FLBREV00022230 dsfsdfs sdfsf FLBREV00022234 In this case is false
Submitted by
Fiipe
-
10 years ago
10
Valid Telephone Number
ECMAScript (JavaScript)
This regex validates varying types of telephone numbers.
Submitted by
Adam Recvlohe
-
8 years ago
6
Replace caracters not inside HTM tags
ECMAScript (JavaScript)
Select a character (or string) ingnoring if that element is inside the HTML tags. Useful to apply html tags using replace.
Submitted by
Alex5B
-
9 years ago
6
IOS3166 Country Code Identification REGEX
Python
IOS3166 Country Code Identification REGEX
Submitted by
theitgeek@recu.org.uk
-
9 years ago
52
Disorted Email Addresses
PCRE (PHP <7.3)
Matches distorted email addresses and converts them back to real ones.
Submitted by
dislick
-
11 years ago
7
Max - URL Extract
PCRE (PHP <7.3)
no description available
Submitted by
Ayush
-
8 years ago
28
CSV line parsing
PCRE (PHP <7.3)
Captures all fields from a CSV file's line. Can be customized with user-defined field separator and protecting character.
Submitted by
Various
-
10 years ago
18
Date: DD-MM-YYYY hh:mm:ss
Recommended
PCRE (PHP <7.3)
Validate and capture dateTime parts, includes validation for leap years, range 1000-2999. Fixed bug
Submitted by
Ka.
-
11 years ago
25
Quote Macthing with escape
ECMAScript (JavaScript)
Matches text within quotes (", ') and escapes the charecters.
Submitted by
Vihan Bhargava
-
9 years ago
106
ECMAScript/JavaScript trim
ECMAScript (JavaScript)
Trim leading and trailing whitespace from a string.
Submitted by
fp
-
11 years ago
(Last modified 2 months ago)
11
html color match: transparent, #fff, #123456, rgb, rgba, hsl, hsla
ECMAScript (JavaScript)
This may be useful or not to test whether a given string is a valid (more or less) html color value. It matches color values such as: #123 - short hex color value #123456 - hex color value rgb(255,255,0) - rgb color value rgba(255,255,0,1.0) - rgba color value hsl(360,100%,100%) - hsl color value...
Submitted by
grouch
-
9 years ago
22
UK Postcode Checker
PCRE (PHP <7.3)
Checks for valid UK/British postcodes. There was another on here that had for some reason been upvoted, but it was actually incorrect as it worked on none of my valid own postcodes! Namely that it assumed two letters and a number (BS3) when you can have variations (M20). Allows for an optional spac...
Submitted by
MaffooBristol
-
10 years ago
34
Google like regex
ECMAScript (JavaScript)
Attempts to mimic Google search box behavior, returning an array with the separated search strings (that keep the +/- indicator for following operations)
Submitted by
mettjus
-
10 years ago
1
2
3
4
5
6
...
883
body, p, idml, indb, indt
0
Regular Expression
PCRE (PHP <7.3)
/
^
(
.
*
?
)
\/
(?<mnemonic>
.
{2,8}
?
)
_
(?<isbn>
\d
{13}
)
_
(?<primaryId>
all
|
tx
\d
{0,3}
|
lay
\d
{0,3}
|
c0
\d
{1,3}
|
c
[^
0
]
\d
{1,2}
?
)
_
(?<secondaryId>
(
\d
{1,2}
|
x
)
p
)
(?:
_r
(?<revisionNumber>
\d
+
)
)?
\.
(?<extension>
indd
|
qxp
|
qxd
)
$
/
gm
Open regex in editor
Description
no description available
Submitted by
anonymous
-
5 years ago