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 340 community submitted regex patterns...
1
.NET CSV parser
.NET 7.0 (C#)
Parses CSV files using comma (,) as delimiter and double quote (") as quoted-field tag. Features: Respects empty fields, including at the beginning and at the end of the line Respects line breaks in quoted fields
Submitted by
kevinhp
-
4 months ago
1
Split Docker image into image name, tag and digest with all optional
Golang
Splits a Docker image string into the separate parts: image, tag, digest tag and digest are optional
Submitted by
Roemer
-
3 months ago
1
Slash Separated Numbers
Golang
...
Submitted by
Anonymous
-
2 months ago
1
ISO 8601 DURATION - Terraform Validation
Golang
This is made to validate an ISO 8601 input in a Terraform variable validation block: validation { condition = can(regex("^P(\\d+Y)?(\\d+M)?(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+S)?)?$", var.value)) error_message = "The value must be a valid ISO 8601 duration string representing time. (e.g. PT...
Submitted by
anonymous
-
2 months ago
1
Factorization: Zero, Unit, Primes, or Composite?
.NET 7.0 (C#)
Description Inspects lines that contain only a character, let's say c, repeated n times. The name of the matching groups will tell you if n is 0, the unit 1, a prime number, or a composite number. Alternative ...
Submitted by
kevinhp
-
a month ago
1
Validate a comma separated list of IPv4 addresses, CIDRs, or IPv4 Ranges like 1.1.1.1-1.1.1.10
Golang
Simple Regex to *validate * (no extraction!) an IPv4 Range which can be a comma separated mixture of IPv4 addresses IPv4 CIDRs IPv4 Ranges like 1.1.1.1-1.1.1.10 Examples : ...
Submitted by
alucab
-
a month ago
1
AOC 2024 D3 regex
Rust
The regex to be used in both parts of adventofcode.com 2024 day 3 puzzle
Submitted by
dragmine149
-
6 days ago
1
advent of code 2024 day3
Golang
regex of challenge
Submitted by
Marcell Martini
-
6 days ago
(Last modified 5 days ago)
1
Paragraph Delimiter Counter (Unicode-Aware)
.NET 7.0 (C#)
Finds all paragraphs in the input text, where a paragraph is defined as any occurrence of a non-whitespace character immediately following any of the following and any other preceding whitespace: 2 or more consecutive CRLF sequences 2 or more consecutive CR characters 2 or more consecutive LF cha...
Submitted by
dodexahedron
-
5 days ago
(Last modified 5 days ago)
2
domain for Google Data Studio (re2 dialect)
Golang
Matches subdomain, domain and top level in a field that contains a urls. https://www.whatever.you.want ---> whatever.you.want
Submitted by
anonymous
-
8 years ago
2
Zoom links, only with passwords
.NET 7.0 (C#)
Group 1 will have meeting id, group 2 will have password
Submitted by
anonymous
-
2 years ago
2
Mime type parser
.NET 7.0 (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
-
2 years ago
(Last modified 2 years ago)
2
Replace sub-strings in string
.NET 7.0 (C#)
Replace sub-strings in string
Submitted by
anonymous
-
2 years ago
2
Phone number for all countries
.NET 7.0 (C#)
Phone number for all countries. Valid symbols: ( ), -, whitespace
Submitted by
Alexander Smirnov
-
2 years ago
2
Get ip address (only ipv4) Validator
.NET 7.0 (C#)
Get ip address (only ipv4) Validator
Submitted by
Mr.Tang
-
2 years ago
(Last modified 2 years ago)
2
Aus Mobile number
.NET 7.0 (C#)
validates against multiple common formats
Submitted by
anonymous
-
2 years ago
2
URL Regex
.NET 7.0 (C#)
Matches protocol, domain, port, path, query and anchor as named capturing groups.
Submitted by
Jonathan
-
a year ago
(Last modified a year ago)
2
Mikrotik firewall logs
Golang
Matching for mikrotik ROS 7 Used in promtail and grafana
Submitted by
anonymous
-
a year ago
(Last modified a year ago)
2
Command line parser
.NET 7.0 (C#)
Supports parameters such as keys and values, also parameters enclosed in quotes.
Submitted by
Pavel Bashkardin
-
4 months ago
(Last modified 4 months ago)
3
Hostname validation
Golang
Validates subdomain, root domain, and wild card domains
Submitted by
AnonymousDapper
-
8 years ago
1
...
14
15
16
17
Community Library Entry
1
Regular Expression
.NET 7.0 (C#)
@"
(?<=
(?!
(
https
*
://
)*
(
(
127
)
|
(
192
\.
168
)
|
(
0
\.
0
\.
0
\.
0
)
)
)
(?:
(?:
https
*
://
)
|
^
)
)
(?:
(?:
2
[
0
-
5
]
[
0
-
5
]
|
1
[
0
-
9
]
{2}
|
[
0
-
9
]
{1,2}
)
\.
(?:
2
[
0
-
5
]
[
0
-
5
]
|
1
[
0
-
9
]
{2}
|
[
0
-
9
]
{1,2}
)
\.
(?:
2
[
0
-
5
]
[
0
-
5
]
|
1
[
0
-
9
]
{2}
|
[
0
-
9
]
{1,2}
)
\.
(?:
2
[
0
-
5
]
[
0
-
5
]
|
1
[
0
-
9
]
{2}
|
[
0
-
9
]
{1,2}
)
)
(?=
[^
\d\s
]
|
$
)
"
gm
Open regex in editor
Description
Matches IP addresses excluding local addresses
Submitted by
pvl_zh
-
4 months ago