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 220 community submitted regex patterns...
1
CSV
Java 8
Crude CSV regex to split only by characters surrounded by non-whitespace characters. Ignore that it dosen't highlight all of the other commas in the editor. If you select the g regex flag it will properly show here, but not work in Java. Credit to @merosity (Merosity#0135) on Discord!
Submitted by
Merosity, regice202
-
a year ago
1
Extract text strings from repeating text fields followed by a suffix
Java 8
This regex expression is useful for extracting only the text string from a value in a column that may contain values from individual rows with repeat strings tagged with a suffix. For example - Row 1: "Sales (#1)", Row 2: "Sales Match (#2)". From the shared examples, this regex will extract the text...
Submitted by
nilotpalc
-
a year ago
1
Youtube Video ID
Java 8
Extract youtube video ID
Submitted by
anonymous
-
a year ago
(Last modified 10 months ago)
1
Gradient for minecraft
Java 8
This is for my plugin project
Submitted by
Trần Thế Anh
-
10 months ago
1
verifyIPV6
Java 8
verificare indirizzo IPV6 (regole base)
Submitted by
Luigi Piccinni
-
10 months ago
1
文件名称验证
Java 8
操作系统文件名称验证,参考了Windows,Linux,Mac
Submitted by
腾龙问天
-
9 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
-
7 months ago
1
AWS EventBridge Scheduling Expressions
Java 8
This validates AWS EventBridge scheduling expressions using the rate() and cron() formats. It may not catch all invalid expressions, but it should properly validate all valid expressions, as demonstrated in the unit tests. Please let me know if I missed any valid expressions. Originally attempted ...
Submitted by
Evan S Kaufman <evan@evanskaufman.com>
-
6 months ago
(Last modified 4 months ago)
1
Parse Address - Prefecture
Java 8
get prefecture from Japanese address
Submitted by
Gary Ascuy
-
6 months ago
1
YouTube Video ID
Java 8
Gets the ID of a YouTube Video from any link to it.
Submitted by
cheeseburger
-
4 months ago
0
ПОДЛЕСОК
Java 8
no description available
Submitted by
anonymous
-
4 years ago
(Last modified 2 months ago)
0
Fund - Arriving in Kathmandu
Java 8
Simple regex for Softuni
Submitted by
anonymous
-
3 years ago
0
笔试
Java 8
笔试字符串检查regex
Submitted by
bgst009
-
3 years ago
0
Alien Registration Number
Java 8
Alien Registration Number
Submitted by
anonymous
-
3 years ago
0
({( ?){ ( ?)(.*) ( ?)}( ?)})
Java 8
{ { I\'m so {cool}, I\'m nested }} I\'m neither { I\'m just boring normal braces }
Submitted by
anonymous
-
3 years ago
0
OmegaT exercise: separators in figures (en -> es)
Java 8
Replace thousand and decimal separators
Submitted by
anonymous
-
3 years ago
0
OmegaT exercises
Java 8
OmegaT exercises
Submitted by
msoutopico
-
3 years ago
0
Regex to replace path in apache rewrite
Java 8
This regex convert following text: /research/the-123s-of-school-choice/ INTO: /research-library/?report=the-123s-of-school-choice
Submitted by
Suman Maharjan
-
3 years ago
(Last modified 3 years ago)
0
Email Regex
Java 8
Regex to capture email from Text
Submitted by
Suman Maharjan
-
3 years ago
0
Regex to capture AlphaNumeric String of 7 or 11 length(Must contain at least one Alphabet and Must contain at least one Numeric)
Java 8
Regex to capture AlphaNumeric String Length should be 7 or 11 Must contain at least one Alphabet Must contain at least one Numeric
Submitted by
Suman Maharjan
-
3 years ago
1
2
3
4
5
...
11
Date: DD-MM-YYYY hh:mm:ss
18
Regular Expression
Recommended
PCRE (PHP <7.3)
/
^
(
0
[
1
-
9
]
|
1
\d
|
2
[
0
-
8
]
|
29
(?=
-
\d\d
-
(?!
1
[
01345789
]
00
|
2
[
1235679
]
00
)
\d\d
(?:
[
02468
]
[
048
]
|
[
13579
]
[
26
]
)
)
|
30
(?!
-02
)
|
31
(?=
-0
[
13578
]
|
-1
[
02
]
)
)
-
(
0
[
1
-
9
]
|
1
[
0
-
2
]
)
-
(
[
12
]
\d
{3}
)
(
[
01
]
\d
|
2
[
0
-
3
]
)
:
(
[
0
-
5
]
\d
)
:
(
[
0
-
5
]
\d
)
$
/
gm
Open regex in editor
Description
Validate and capture dateTime parts, includes validation for leap years, range 1000-2999. Fixed bug
Submitted by
Ka.
-
11 years ago