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
Remove multiple forward slash from url
PCRE2 (PHP >=7.3)
(): This is a capturing group that matches any character except a colon :, and it captures this character for later use in the replacement. (/ {2,}): This part matches two or more consecutive forward slashes. The replacement part $1/ uses the captured character from the first part (which is any char...
Submitted by
Apon Ahmed
-
10 months ago
(Last modified 10 months ago)
1
IPv4 address with optional CIDR suffix
ECMAScript (JavaScript)
Matches any valid IPv4 address with, optionally, a CIDR suffix. 0.0.0.0 to 255.255.255.255 and 1.1.1.1/0 to 1.1.1.1/32. Use the following regex if you don't want to allow the CIDR suffix. ...
Submitted by
MAZ01001
-
10 months ago
1
Credit card regex
PCRE2 (PHP >=7.3)
Credit card name and surname with turkish char
Submitted by
anonymous
-
10 months ago
0
PLP redirection
PCRE2 (PHP >=7.3)
PLP redirection
Submitted by
anonymous
-
10 months ago
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
...
27
28
29
30
31
...
902
Community Library Entry
2
Regular Expression
PCRE (PHP <7.3)
/
\s
[
0
-
9
]
\s
(
[
A
-
Z
]
{2,3}
)
(
[
0
-
9
\s
]
{4}
)
\s
(
[
A
-
Z
]
)
\s\s
(
[
A
-
Z
]
{1,2}
)
\s
(
[
0
-
9
]
{1,2}
)
(
JAN
|
FEB
|
MAR
|
APR
|
MAY
|
JUN
|
JUL
|
AUG
|
SEP
|
OCT
|
NOV
|
DEC
)
\s\s
(
[
A
-
Z
]
{3}
)
(
[
A
-
Z
]
{3}
)
\s
(
[
A
-
Z0
-
9
]
{3}
)
\s
(
X
|
\s
)
\s
(
[
0
-
9
]
{2}
)
(
[
0
-
9
]
{2}
)
\s
(
[
0
-
9
]
{2}
)
(
[
0
-
9
]
{2}
)
(
\s
|
\*
)
(
[
A
-
Z
]
*
)
\s
(
.
*
)
/
g
Open regex in editor
Description
no description available
Submitted by
anonymous
-
9 years ago