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
Regex to Match Regular Expression in JS/TS
PCRE2 (PHP >=7.3)
Matches regular expressions in JS/TS (EcmaScript) code including none or one of the flags g, i`, m, u, y`.
Submitted by
Redu
-
10 months ago
1
Match Single Line (//) Comments in JSON
PCRE2 (PHP >=7.3)
Doesn't get confused by the url values like "https://www.example.com" or "file:///some.txt"
Submitted by
Redu
-
10 months ago
(Last modified 10 months ago)
1
username_unix.gamesave
PCRE2 (PHP >=7.3)
TILE_WIDTH = 2 # Includes space for padding and one space between tiles formatted_board = "" for i in range(rows): formatted_row = "" for j in range(columns):...
Submitted by
robert paulson
-
10 months ago
(Last modified 6 months ago)
1
Estract download speed from Ookla Speedtest output
PCRE2 (PHP >=7.3)
surely can be optimized more, but it does the job and the interested number of lines is fairly low.
Submitted by
anonymous
-
10 months ago
1
111
PCRE2 (PHP >=7.3)
((?:[零一二三四五六七八九十百]+))$
Submitted by
anonymous
-
10 months ago
1
IANA Media Type
Java 8
Parses an IANA Media Type value. Doesn't seem to capture repeating parameters, which is a bit of an edge case but valid I think - any suggestions on how to fix would be appreciated.
Submitted by
scottbdr
-
10 months ago
1
Mediawiki History Dump filenames
Python
Matches filenames of MediaWiki history dumps.
Submitted by
CristianCantoro
-
10 months ago
1
loyal
PCRE2 (PHP >=7.3)
loyal
Submitted by
anonymous
-
10 months ago
1
named capture
PCRE2 (PHP >=7.3)
simple named capture
Submitted by
Gene
-
10 months ago
1
ipmitool sensor
PCRE2 (PHP >=7.3)
Parse stdout from ipmitool sensor
Submitted by
anonymous
-
10 months ago
(Last modified 10 months ago)
1
تمرین اول
PCRE2 (PHP >=7.3)
تمرین اول مبانی پردازش گفتار انتخاب شماره هایی که با صفر یا +98 شروع شده انذ.
Submitted by
mabani.
-
10 months ago
(Last modified 10 months ago)
1
Medicare Number
PCRE2 (PHP >=7.3)
Following the rules setup here https://www.cms.gov/medicare/new-medicare-card/understanding-the-mbi-with-format.pdf
Submitted by
Kyle Salmon
-
10 months ago
1
XTREAM / M3U Link
PCRE2 (PHP >=7.3)
Matches the M3U links provided by Xtream servers to stream IPTV
Submitted by
Ɒ○ꝑẹЄпс○ὔпדּẹꭆ
-
10 months ago
1
Zuma Game
PCRE2 (PHP >=7.3)
Tests if a Zuma board can be cleared completely
Submitted by
wheatup
-
10 months ago
(Last modified 10 months ago)
1
Blibli apps url
PCRE2 (PHP >=7.3)
blibli apps marketplace url
Submitted by
ival
-
10 months ago
1
Blibli web url
PCRE2 (PHP >=7.3)
Blibli marketplace web url
Submitted by
ival
-
10 months ago
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
...
27
28
29
30
31
...
902
Community Library Entry
2
Regular Expression
PCRE (PHP <7.3)
/
(
http:
|
https:
|)
\/\/
(
player
.
|
www
.
)?
(
vimeo
\.
com
|
youtu
(
be
\.
com
|
\.
be
|
be
\.
googleapis
\.
com
)
)
\/
(
video
\/
|
embed
\/
|
watch
\?
v=
|
v
\/
)?
(
[
A
-
Za
-
z0
-
9._%-
]
*
)
(
\&
\S
+
)?
/
g
Open regex in editor
Description
grab youtube & vimeo id
Submitted by
mi-ca.ch
-
9 years ago