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...
2
composer package
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
2
JSON validator
PCRE (PHP <7.3)
Takes a JSON string and captures interesting information in the named capturing groups: (o: last object, a: last array, s: last string, n: last number, c: last comma before optional whitespace, d: same as c, but with a colon instead of a comma, v: last value)
Submitted by
luis140219 on GitHub and Sourceforge
-
10 years ago
2
java variable declaration
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2
standard 16 columns hexdump
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
2
Country calling codes
PCRE (PHP <7.3)
Parses countries list from https://countrycode.org/
Submitted by
anonymous
-
10 years ago
2
CSS Minimizer
PCRE (PHP <7.3)
Takes any valid CSS and minimizes it, removing comments and whitespace. Can be called with something like PHP's preg_replace() to dynamically minimize css files.
Submitted by
skoskie
-
10 years ago
2
Получение числа, которым заканчивается строка
PCRE (PHP <7.3)
no description available
Submitted by
summer_rain
-
10 years ago
2
Match at least 2-letters (international)
ECMAScript (JavaScript)
RegExp to match that user has entered at least 2-letters (including international letters) in a field
Submitted by
anonymous
-
10 years ago
2
regex 1 or more json array
PCRE (PHP <7.3)
no description available
Submitted by
me
-
10 years ago
2
Find any URL with no trailing slash
ECMAScript (JavaScript)
Not perfect, but better than none.
Submitted by
oneglory
-
10 years ago
2
Vimeo Video ID
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
2
date formatting mm/dd/yyyy format
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2
extract twitter username from url
ECMAScript (JavaScript)
Adopted one of answers from: http://stackoverflow.com/questions/5948051/regex-extract-twitterusername-from-url
Submitted by
anonymous
-
9 years ago
2
URL
PCRE (PHP <7.3)
Matches the URL from the text to 95 percentage
Submitted by
Harinath
-
9 years ago
2
Spanish telephone number
ECMAScript (JavaScript)
Teléfonos del territorio de España. Se admiten teléfono de 9 cifras que empiecen por 9, 7 ó 6. Opcionalmente puede tener el prefijo de país siendo válidas las siguientes opciones: (+34) (0034) +34 0034 ...
Submitted by
toyeca
-
9 years ago
2
Get email info
PCRE (PHP <7.3)
Get Gmail tag, user and domain of an email address
Submitted by
Matías Pizarro González
-
9 years ago
2
TimeFormatParser
PCRE (PHP <7.3)
This allows to the programer to match the time format groups, in a way that allow to discard some parts of the format. E.g. I have a format HhMmSs and i want to ignore the 'Ss' part from the format when I have no Seconds
Submitted by
Fausto A. Guerrero
-
9 years ago
2
i18 language lines extraction
ECMAScript (JavaScript)
Extracts lines with i18 prefix from text
Submitted by
anonymous
-
9 years ago
2
python:S117
PCRE (PHP <7.3)
Local variable and function parameter names should comply with a naming convention
Submitted by
anonymous
-
9 years ago
2
Simple @user replacement
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
...
862
863
864
865
866
...
902
Community Library Entry
0
Regular Expression
PCRE2 (PHP >=7.3)
/
(
\(
\d
{1,3}
[
0
-
9,a
-
z,A
-
Z
]
{1}
?
\)
(?<upc>
[
\d
,a
-
z,A
-
Z
]
{1,70}
)
)
(
\(
\d
{1,3}
[
0
-
9,a
-
z,A
-
Z
]
{1}
?
\)
(?<date>
[
\d
,a
-
z,A
-
Z
]
{1,70}
)
)
(
\(
\d
{1,3}
[
0
-
9,a
-
z,A
-
Z
]
{1}
?
\)
(?<batch>
[
\d
,a
-
z,A
-
Z
]
{1,70}
)
)
/
gm
Open regex in editor
Description
Parse the 3 groups of a GS1-128 Barcode
Submitted by
Mike D
-
2 years ago