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 320 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
-
7 months 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
-
6 months ago
1
Youtube Video ID
Java 8
Extract youtube video ID
Submitted by
anonymous
-
5 months ago
(Last modified 5 months ago)
1
Simple URL validation
.NET 7.0 (C#)
Validates protocol, sub-domain, domain, and top-level domain. No port number and query string parameters validation is made.
Submitted by
anonymous
-
5 months ago
1
Initializing identifiers
.NET 7.0 (C#)
Initializing identifiers
Submitted by
anonymous
-
5 months ago
1
Gradient for minecraft
Java 8
This is for my plugin project
Submitted by
Trần Thế Anh
-
4 months ago
1
verifyIPV6
Java 8
verificare indirizzo IPV6 (regole base)
Submitted by
Luigi Piccinni
-
4 months ago
1
文件名称验证
Java 8
操作系统文件名称验证,参考了Windows,Linux,Mac
Submitted by
腾龙问天
-
4 months ago
1
Match all HTML heading elements and capture their titles
.NET 7.0 (C#)
Useful for matching/finding and capturing/extracting the titles of HTML heading elements. This was used to identify all heading elements within the body of a web page for the purposes of generating a Table of Contents for the page. Note: This expression could be altered for different HTML element ta...
Submitted by
Darius Liktorius
-
2 months ago
1
ActivityWatcher
.NET 7.0 (C#)
sda
Submitted by
anonymous
-
2 months ago
1
.*(EXCEL[.]EXE).*(?i)(Maxicredito).*([.]xlsx - Excel)
.NET 7.0 (C#)
.(EXCEL[.]EXE).(?i)(Maxicredito).*([.]xlsx - Excel)
Submitted by
anonymous
-
2 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
-
a month ago
1
GS1 Transport Label (EAN-128) and parse the application identifiers datafields
.NET 7.0 (C#)
A regex to parse the GS1-128 transport / shipping label from multiple EAN-128. The Regex is generated from the offical GS1 specification will identify all datafields Like for example AI 00: Serial Shipping Container Code (SSCC) AI 01: Global Trade Item Number (GTIN) AI 02: Identification of trade i...
Submitted by
anonymous
-
16 days ago
(Last modified 16 days 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>
-
16 days ago
(Last modified 14 days ago)
1
Parse Address - Prefecture
Java 8
get prefecture from Japanese address
Submitted by
Gary Ascuy
-
9 days ago
0
Regular expression for extracting HTML tag attributes
Java 8
no description available
Submitted by
Amir Arian
-
9 years ago
(Last modified 8 months ago)
0
Bash (sed)
Java 8
no description available
Submitted by
anonymous
-
8 years ago
(Last modified 8 months ago)
0
Analyze movie and series episode torrent name
Java 8
Analyze whether the torrent name is a Movie or TV Episode Inspired from https://regex101.com/library/yP4bY4 There is two versions, see differences at the bottom Groups:...
Submitted by
Hot Priest
-
a year ago
(Last modified a year ago)
-1
IPv4 Matcher
Java 8
This RE is divided into four parts. The first three parts are acceptable numbers from 0 to 255 followed by "." The last part is an acceptable number but not followed by "."
Submitted by
EMAM1999
-
3 years ago
-1
MMM DDD YYYY
.NET 7.0 (C#)
FEB MON 2023
Submitted by
anonymous
-
a year ago
1
2
3
4
5
6
...
16
7zip file type regex
0
Regular Expression
.NET 7.0 (C#)
@"
(?xim)
^\s
*
(?<Num1>
\d
+
)
\s
+
(?<Dots>
.
*
?
)
\s
+
(?<X>
.
*
?
)
\s
+
(?<ExtList>
.
*
?
)
\s
{2,}
(?<Rest>
.
*
)
$
#
//
#
(?<ExtList>.*)
#
\s{2,}
#
(?<BytesOr>(\|.{2}))*?
#$
"
gm
Open regex in editor
Description
header of output from > 7z i
Submitted by
ninmonkey
-
2 years ago