Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Social
Join the Discord community!
Follow me on twitter!
Send me an email
Donate
Donate
Donate through Paypal
Become a Github Sponsor
Info
Info
Find out what's new!
RegEx101 Wiki
Report bugs or make suggestions
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Community Patterns
Community Patterns
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Get help on Discord
Get help on IRC
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 (C#)
Rust
Sponsors
Community Patterns
Search among 300 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Authelia regex path rules
Golang
Testing Authelia subdomain / path rules. You can read more at the Authelia Docs By default, this regex101 page is shown a test for a generic API path domain: "some-sub.drpranavmishra.com" resources:...
Submitted by
Pranav Mishra
-
7 months ago
2023-05-06 19:29
(Last modified 7 months ago)
2023-05-07 13:35
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
date time validation
.NET (C#)
Validation of the date of time, taking into account the high year in the format date.ToString("yyMMdd-hh_mm_ss").
Submitted by
Oleksii Serikov (alex@neochrom.biz)
-
7 months ago
2023-05-04 16:18
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Get digits
Golang
Trying to get digits
Submitted by
Arthur Silva
-
7 months ago
2023-05-03 18:20
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
walter1976LastClean
Golang
walter1976LastClean
Submitted by
anonymous
-
7 months ago
2023-05-02 03:52
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
匹配限定后缀名的文件,忽略大小写
Golang
匹配.mka后缀名的文件,忽略大小写
Submitted by
anonymous
-
7 months ago
2023-04-26 14:47
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
匹配限定后缀名中的指定关键字,忽略大小写
Golang
匹配.mkv和.mp4后缀名中包含menu或sp或.sample,忽略大小写
Submitted by
anonymous
-
7 months ago
2023-04-26 14:31
(Last modified 7 months ago)
2023-04-26 14:38
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
golang re2 negative lookahead
Golang
Aquivalent solution for golang's unsupported negative lookahead in re2 flavor of go's regex. This example provides a negative lookahead similar to (?!/api/) ignoring routes with the /api/ prefix at the start.
Submitted by
misha
-
7 months ago
2023-04-21 10:28
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Caltrans EA validation with optional XX-XXXXXX entry and C##-#????#
.NET (C#)
Checks validity of an EA number first two digits 01-12 followed by hyphen then a number from 0-4 and then 4 numbers or uppercase letters and ending in a 1 or 4 for example "05-1J7601". Adding a capital C to the beginning is also accepted "C05-1J7601", along with the entry of 2 X's hyphen and 6 X's ...
Submitted by
RDJ@Ct
-
8 months ago
2023-04-07 19:11
(Last modified 8 months ago)
2023-04-07 19:51
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Check Windows file name
.NET (C#)
Verifying Windows file names (without suffix)
Submitted by
anonymous
-
8 months ago
2023-04-06 01:43
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
pxc plcnext
Golang
plcnext version strings
Submitted by
anonymous
-
8 months ago
2023-03-27 07:38
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regex Card Name - Custom
.NET (C#)
custom validation for card name with custom validation. only allow these characters Alphanumeric (A-Z a-z0-9) Special Characters (#&+()/)
Submitted by
anonymous
-
8 months ago
2023-03-24 08:53
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Лямбды для OneScript
.NET (C#)
лямбды для проекта https://github.com/sfaqer/lambdas
Submitted by
anonymous
-
8 months ago
2023-03-23 12:32
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Aus Mobile number
.NET (C#)
validates against multiple common formats
Submitted by
anonymous
-
8 months ago
2023-03-20 06:22
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
domain
Golang
ss
Submitted by
sssssss
-
9 months ago
2023-03-12 10:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Semver split
Golang
"1.2.3" Group 1: 1 Group 2: 2 Group 3: 3
Submitted by
Icaruk
-
9 months ago
2023-03-10 10:10
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Get ip address (only ipv4) Validator
.NET (C#)
Get ip address (only ipv4) Validator
Submitted by
Mr.Tang
-
9 months ago
2023-02-21 12:10
(Last modified 9 months ago)
2023-02-21 12:15
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Get ip address (only ipv6) Validator
.NET (C#)
Get ip address (only ipv6) Validator
Submitted by
Mr.Tang
-
9 months ago
2023-02-20 19:35
(Last modified 9 months ago)
2023-02-21 12:08
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Get ip address (only ipv4) Validator
.NET (C#)
Get ip address (only ipv4) Validator
Submitted by
Mr.Tang
-
9 months ago
2023-02-20 18:43
(Last modified 9 months ago)
2023-02-21 12:05
-2
0 upvotes, 2 downvotes (score 0%) (You must be signed in to vote)
Parsing result of SQL Server version (SELECT @@VERSION)
.NET (C#)
Parses MS SQL Server version returned from executing SELECT @@version
Submitted by
M Rivas
-
9 months ago
2023-02-15 21:12
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Mime type parser
.NET (C#)
A "simple" regex to parse mime types. Handles all commonly occurring parts of a mime type string such as: Type Subtype Subtype's with an extra extension (e.g. svg+xml) (Optional input) Multiple parameters (Optional input)...
Submitted by
Vespion
-
9 months ago
2023-02-14 14:11
(Last modified 9 months ago)
2023-02-14 16:03
1
2
3
4
5
...
15
^[A-Z,a-z,\-, ,\&]+$
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
.NET (C#)
@"
^
[
A
-
Z,a
-
z,
\-
,
,
\&
]
+
$
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
10 months ago
2023-02-06 12:47