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
Community Patterns
Search among 6,140 community submitted regex patterns...
0
All kinds of stupid Content-Types
PCRE2 (PHP >=7.3)
Some applications send incorrect HEADERS:Content-Type. If it needs to pass the checks (for example, on WAF) this regex maybe used
Submitted by
anonymous
-
2 years ago
0
Password
PCRE2 (PHP >=7.3)
Password includes a,A,1,!$#%
Submitted by
anonymous
-
2 years ago
0
REGEX OS
Java 8
Regex para extrair titulo e descrição duma OS
Submitted by
anonymous
-
2 years ago
0
长宽高
PCRE2 (PHP >=7.3)
长宽高
Submitted by
mouxan
-
2 years ago
-2
Match whitespace and colon, except in specific words
ECMAScript (JavaScript)
For string splitting / deconstructing
Submitted by
anonymous
-
2 years ago
0
match extends in a class
PCRE2 (PHP >=7.3)
to match extends in a class
Submitted by
anonymous
-
2 years ago
0
implements Regex
PCRE2 (PHP >=7.3)
To match implements in classes
Submitted by
anonymous
-
2 years ago
0
Laravel all routes, except some
PCRE2 (PHP >=7.3)
When creating a SPA we could capture all routes except some. Needed this for Laravel Route::get('/{any?}', function () { return 'Not captured';...
Submitted by
aldo-f
-
2 years ago
0
AWS EC2 Hostname
PCRE2 (PHP >=7.3)
Validates AWS EC2 Hostnames
Submitted by
holy-moly-555
-
2 years ago
0
Date dd.mm.yyyy
PCRE2 (PHP >=7.3)
Regex for datestring validation
Submitted by
anonymous
-
2 years ago
0
Equifax street types parser
PCRE2 (PHP >=7.3)
Street types
Submitted by
anonymous
-
2 years ago
2
HTML Minifier
PCRE2 (PHP >=7.3)
https://stackoverflow.com/questions/5312349/minifying-final-html-output-using-regular-expressions-with-codeigniter Thanks to @Alan Moore
Submitted by
anonymous
-
2 years ago
0
stage build checker
PCRE2 (PHP >=7.3)
stage build checker
Submitted by
anonymous
-
2 years ago
0
estoque_bling_regex
PCRE2 (PHP >=7.3)
Regex xml stock Bling
Submitted by
Dimitri
-
2 years ago
0
multicast
ECMAScript (JavaScript)
.
Submitted by
anonymous
-
2 years ago
0
Rules
PCRE2 (PHP >=7.3)
Rules
Submitted by
anonymous
-
2 years ago
1
Japanese Characters matching
ECMAScript (JavaScript)
Regex for Matching Jap Romaji Chars. I am in the middle of making an interface for Anki that works life wanikani. This way I can practice my own cards instead of a set syllabus. For that I need to make a Japanese Kana input, so I went with the good old regex to match all the romaji groups which ca...
Submitted by
Aashay Thakur
-
2 years ago
(Last modified 2 years ago)
0
取字母中间的数字
Java 8
获取前后各有一个数字,中间的数字
Submitted by
lemon 1900
-
2 years ago
1
Find Matching Parenthesis, Brackets, and Curly Brackets
ECMAScript (JavaScript)
Given a string, find matching parenthesis, brackets, and/or curly brackets.
Submitted by
Matthew Hiebing
-
2 years ago
0
Extract all images URLs that are local (domain omitted) from a web page
ECMAScript (JavaScript)
Extract all images URLs that are local (domain omitted) from a web page
Submitted by
anonymous
-
2 years ago
1
...
76
77
78
79
80
...
307
Breakdown datetime stamp into parts (YYYY-MM-DD[T]HH:MM:SS)
0
Regular Expression
ECMAScript (JavaScript)
/
(?<year>
[
\d
]
{4}
)
-
(?<month>
0
[
1
-
9
]
|
1
[
1
-
2
]
)
-
(?<day>
0
[
1
-
9
]
|
[
1
-
2
]
[
0
-
9
]
|
3
[
0
-
1
]
)
T
(?<hour>
[
0
-
1
]
[
0
-
9
]
|
2
[
0
-
3
]
)
:
(?<minute>
[
0
-
5
]
[
0
-
9
]
)
:
(?<second>
[
0
-
5
]
[
0
-
9
]
)
(?:
Z
|
.
(?<millisecond>
[
0
-
9
]
{2,3}
)
)
/
gmi
Open regex in editor
Description
This will break the datetime string into it's individual parts and add them into named groups.
Submitted by
Tony Hume
-
3 years ago