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
Username@Hostname:port w capture groups
PCRE2 (PHP >=7.3)
used to parse alphanum usernames @ hostnames w portnumbers utilizing capture groups
Submitted by
Johnathan Smithers
-
10 months ago
(Last modified 6 months ago)
1
Detect Multiple File Extensions
PCRE (PHP <7.3)
I use this to find files with two or more extensions (i.e. file.txt.txt). This will work with files with 3 or 4 character or numeric (or both) file extensions (i.e. pdf, xlsx).
Submitted by
Curve
-
10 months ago
(Last modified 10 months ago)
1
Unary prime numbers
PCRE2 (PHP >=7.3)
Matches all lines whose length is a prime number and only contain the character "1".
Submitted by
pablo
-
10 months ago
(Last modified 10 months ago)
1
URL
ECMAScript (JavaScript)
Match a URL and capture its parts. Please suggest your improvements.
Submitted by
Lamer217
-
10 months ago
1
JavaScript number literals
ECMAScript (JavaScript)
Should match any valid JavaScript number literal incl. bigint. See EDIT 4 in this StackOverflow answer by me for matching JS numbers. open in regex101 editor - example matches and unit tests\ Regulex%7C%5BoO%5D%3F%5B0-7%5D(%3F%3A_%3F%5B0-7%5D%2B)%7C%5BxX%5D%5B0-9a-fA-F%5D(%3F%3A_%3F%5B0-9a-fA-F%5D...
Submitted by
MAZ01001
-
10 months ago
(Last modified 7 months ago)
1
Excel CSV Parser
ECMAScript (JavaScript)
I'm dealing quite a lot w this. This CSV Parser is used for Js (particularly for my current project wrting script for After Effects through ExtendScript)
Submitted by
binguine
-
10 months ago
1
HID Usage Tables to Rust Enum
PCRE2 (PHP >=7.3)
A regex to transform tables from https://usb.org/sites/default/files/hut1_2.pdf to rust enum items After pasting be sure to remove the whitespaces
Submitted by
dzervas
-
10 months ago
1
Randomizer Template
ECMAScript (JavaScript)
Randomizer Template
Submitted by
HoshinoSuzumi<master@uniiem.com>
-
10 months ago
(Last modified 10 months ago)
1
(([a-z]*\d+[a-z\d\-\\\/]*[\s\,]+)+)(?=([a-z]+[\s\,\b$]))
PCRE2 (PHP >=7.3)
Подряд идущие слова в которых обязательно должна быть цифра. Выбирать до первого слова без цифр. Также в словах могут быть символы /-\ До цифр в слове могут быть только буквы.
Submitted by
anonymous
-
10 months ago
1
Obsidian.md Remotely Save
PCRE2 (PHP >=7.3)
This regex is for Obsidian's plugin Remotely Save. This helps ignoring all config files except some.
Submitted by
LucasD
-
10 months ago
1
Remover \x160 e arrumar texto para dados com tabulação
ECMAScript (JavaScript)
Remove caracteres ocultos (\x160) e arruma textos com espaços extras antes e depois da palavra para dados tabulados (com tab)
Submitted by
Danilo Ikebara
-
10 months ago
(Last modified 10 months ago)
1
extract url
PCRE2 (PHP >=7.3)
extract url
Submitted by
anonymous
-
10 months ago
1
Multiple substrings between string and a space
PCRE2 (PHP >=7.3)
Multiple substrings between string and a space
Submitted by
anonymous
-
10 months ago
2
Quartz CRON Validation with groups
ECMAScript (JavaScript)
CRON validation Validates CRON pattern (Quartz) and supports groups. Useful for e.g. typescript or other typed languages. The following greoups are covered: second...
Submitted by
Nico Vitt
-
10 months ago
1
Ateco Code Validation
Python
Ateco Groups Regex to identify the groups that make up the ateco code, based on its structure. More details: https://www.istat.it/it/archivio/17888 Valid Ateco: 01 - 28.2 - 24.45 - 46.74.1 - 46.73.22...
Submitted by
christian dalena
-
10 months ago
1
T Launcher Regex
PCRE2 (PHP >=7.3)
Checks for t launcher
Submitted by
anonymous
-
10 months ago
(Last modified 10 months ago)
1
Tag Extractor for Sonarr V3 Release Profiles
PCRE2 (PHP >=7.3)
Better migrate everything to custom format after updating to Sonarr V4!
Submitted by
anonymous
-
10 months ago
1
SGML Element (.Net)
PCRE2 (PHP >=7.3)
Parses an SGML . Doesn't support name groups. Probably imperfect in other ways. Note this is crafted for .Net as things get a little weird with # matching.
Submitted by
Scott Bednar
-
a year ago
1
SGML Element (.Net)
PCRE2 (PHP >=7.3)
Parses an SGML . It doesn't account for name groups. See https://sgmljs.net/docs/sgmlrefman.html. Note that the "Flavor" should be .NET as things get a little weird with the # matching.
Submitted by
anonymous
-
a year ago
(Last modified a year ago)
1
Connection String Parser
PCRE2 (PHP >=7.3)
Parses connection strings into named groups Key and Value , which can then be handled by whatever programmatic method you like. Ideally handled as key value pairs. I did this in PowerShell using the below: function Resolve-ConnectionString {...
Submitted by
rbleattler
-
a year ago
1
...
28
29
30
31
32
...
902
Community Library Entry
2
Regular Expression
PCRE (PHP <7.3)
/
(
(
http
|
https
)
(
\:\/\/
)
(
(
(
[
a
-
zA
-
Z_
\-
0
-
9
]
{1,2000}
)
(
\.
)
(
[
a
-
zA
-
Z_
\-
0
-
9
]
{1,2000}
)
(
\.
)
(
[
a
-
zA
-
Z_
\-
0
-
9
]
{1,16}
)
)
|
(
(
[
a
-
zA
-
Z_
\-
0
-
9
]
{1,2000}
)
(
\.
)
(
[
a
-
zA
-
Z_
\-
0
-
9
]
{1,16}
)
)
)
(
(
(
[
\/
a
-
zA
-
Z
\
_
\-
%0
-
9
\.\?\=
]
{1,3000}
)
|
(
\/
)
|
(
)
)
)
)
/
Open regex in editor
Description
took me way to long
Submitted by
timmyRS
-
9 years ago