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,000 community submitted regex patterns...
1
Regex for parsing Slack Urls
ECMAScript (JavaScript)
This regex is a duplicate of another one, but with a minor modification to support subdomains with one or more "-" in it. ie:
Submitted by
Dylan
-
8 years ago
1
Statful Entities Name
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
Regex to replace width and height of mediatool image
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
中文
Python
Python 正则匹配中文、中文全角逗号句号和问号
Submitted by
anonymous
-
8 years ago
1
Insert comma as thousands delimiter
PCRE (PHP <7.3)
The following regular expression can be used to insert commas as thousands delimiter. The pattern was taken from the http://www.dlang.org web site.
Submitted by
Unknown
-
8 years ago
1
test
Python
learning regex in python
Submitted by
anonymous
-
8 years ago
1
Chord scanning
Python
no description available
Submitted by
anonymous
-
8 years ago
1
decimal nr between 0-99999.99 with comma or dot with max. 2 decimal digits
ECMAScript (JavaScript)
decimal nr between 0-99999.99 with comma or dot with max. 2 decimal digits
Submitted by
anonymous
-
8 years ago
1
double number
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
#define
Python
no description available
Submitted by
anonymous
-
8 years ago
1
Define and detect custom tag with specific prefix & suffix
ECMAScript (JavaScript)
Define and detect custom tag with specific prefix & suffix Define custom tag : `` . Regex is /\s]+?):>/gm . Prefix is `` . tag_name can not contain prefix, suffix, space, tab or newline character . tag_name can not be null ....
Submitted by
ShenTengTu
-
8 years ago
1
SharePoint file name validator - KB905231
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
Italian check codeline
PCRE (PHP <7.3)
Expression matches magnetic codeline of checks, in italian banking system. i.e. >1234567890 old layout check >1234567890- 103014250# 66666666+ --> new layout check (notice the '-' check number terminator)...
Submitted by
Benny
-
8 years ago
1
/etc/passwd for most Linux distributions (e.g. Debian)
Python
no description available
Submitted by
anonymous
-
8 years ago
1
parsing objdump output
Python
parsing objdump output
Submitted by
anonymous
-
8 years ago
1
dd-MM-yyyy validation
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
Trim leading zeroes in numbers 012.210 => 12.21
PCRE (PHP <7.3)
Trim leading zeroes 012.210 => 12.21 .002300 => .0023
Submitted by
FAy
-
8 years ago
1
number
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
Lockbox Sätze #2
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
extract username from windows domain\user
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
...
226
227
228
229
230
...
900
Community Library Entry
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
-
4 years ago