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 2,640 community submitted regex patterns...
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
-
6 days ago
(Last modified 6 days ago)
1
advent of code 2024 day3
Golang
regex of challenge
Submitted by
Marcell Martini
-
7 days ago
(Last modified 6 days 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
-
8 days ago
1
aws resource
Python
matches aws resources (arn:aws) strings
Submitted by
anonymous
-
8 days 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
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
semver2.0.0_franenguix
Python
Given a version number MAJOR.MINOR.PATCH, increment the: MAJOR version when you make incompatible API changes. MINOR version when you add functionality in a backward compatible manner. PATCH version when you make backward compatible bug fixes. A pre-release version MAY be denoted by appending a hyp...
Submitted by
FranEnguix
-
a month ago
(Last modified a month ago)
1
GPT multiline equations match
Python
substitutes \[...\] with $$...$$
Submitted by
MyAiTree
-
a month ago
(Last modified a month ago)
1
ChatGPT Equations to MD equations
Python
Substitute the oneliner GPT equations \(..\) to tex like i.e. $..$
Submitted by
MyAITree
-
2 months ago
1
Match a^nb^n
Python
Matches some number of a's followed by the same number of b's, usually written as a^nb^n for all natural numbers n. For regular expressions as formally defined in formal language theory, this is impossible, but modern day regex engines can do far more than match just regular languages. Note that eve...
Submitted by
FieryIceStickie
-
2 months ago
1
SVG viewbox parser
Python
for finding and extracting numbers from the viewbox attribute. see also my generalized SVG number regex. v2: added support for scientific notation
Submitted by
riedler
-
2 months ago
(Last modified 2 months ago)
1
SVG number syntax
Python
for correctly parsing numbers in SVG attributes like path d or viewBox with regex v2: added support for scientific notation
Submitted by
riedler
-
2 months ago
(Last modified 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
Slash Separated Numbers
Golang
...
Submitted by
Anonymous
-
2 months ago
1
Telegram username
Python
Validates and obtains the Telegram user's username according to the rules for creating usernames
Submitted by
okineadev
-
2 months ago
(Last modified 2 months ago)
1
Egyptian Phone Numbers regex Checker
Python
To check for Egyptian phone numbers using a regular expression Format of Egyptian phone numbers: It starts with 01 (indicating mobile numbers). Followed by one of the following digits representing the mobile provider: 0 for Vodafone. 1 for Etisalat....
Submitted by
Assem ELQersh
-
3 months ago
1
vozuskia (cs/sk)
Java 8
Addes a non-breaking space after any of the letters included in the [vozuskia] class.
Submitted by
Manuel Souto Pico
-
3 months ago
1
East pointer, reference and const to west.
Python
just as god intended. "T const" -> "const T"
Submitted by
SpaghettDev
-
3 months ago
(Last modified 3 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
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)
1
2
3
...
132
Community Library Entry
0
Regular Expression
Java 8
"
^
(?:
подлесок:
?
+
)
(?:
[
]
*
+
(?<TS1>
[
а
-
я
]
{1,4}
|
\d
+
)
(?=
[
,+
]
|
$
)
)?
+
(?:
[
,
+
]
*
+
(?<TS2>
[
а
-
я
]
{1,4}
|
\d
+
)
(?=
[
,
+
]
|
$
)
)?
+
(?:
[
,
+
]
*
+
(?<TS3>
[
а
-
я
]
{1,4}
|
\d
+
)
(?=
[
,
+
]
|
$
)
)?
+
(?:
[
,
+
]
*
+
(?<TS4>
[
а
-
я
]
{1,4}
|
(
\d
+
)
)
(?=
[
,
+
]
|
$
)
)?
+
(?:
[
,
+
]
*
+
(?<TS5>
[
а
-
я
]
{1,4}
|
\d
+
)
(?=
[
,