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 5,940 community submitted regex patterns...
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
-
5 days ago
1
test
ECMAScript (JavaScript)
testing
Submitted by
madgregory
-
6 days 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
-
9 days ago
(Last modified 9 days ago)
1
GPT multiline equations match
Python
substitutes \[...\] with $$...$$
Submitted by
MyAiTree
-
14 days ago
(Last modified 7 days ago)
1
ChatGPT Equations to MD equations
Python
Substitute the oneliner GPT equations \(..\) to tex like i.e. $..$
Submitted by
MyAITree
-
14 days ago
1
Credit Cart Prediction & Validation
ECMAScript (JavaScript)
Credit Card Carrier Prediction This regex is specifically designed to predict from the first few characters which carrier type the credit card number is.
Submitted by
anonymous
-
25 days ago
(Last modified 23 days 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
-
a month 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
-
a month ago
(Last modified 22 days 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
-
a month ago
(Last modified 22 days 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
-
a month ago
1
Slash Separated Numbers
Golang
...
Submitted by
Anonymous
-
a month ago
1
Search for markup elements with an attribute
ECMAScript (JavaScript)
In this example we are searching for all element/component in JSX that have the is="secondary" prop. This regex was tested with VS Code
Submitted by
anonymous
-
a month ago
1
short IPV4 Capture
ECMAScript (JavaScript)
(?(?:(?:25[0-5]|(?:2[0-4]|1\d|[1-9]|)\d)\.?\b){4}) Originating from ^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$ at only 43 chars Source: Danail Gabenski
Submitted by
0xp
-
a month ago
1
Teste RISOLUTO button com span ícone
ECMAScript (JavaScript)
Teste
Submitted by
risoluto
-
a month ago
1
Telegram username
Python
Validates and obtains the Telegram user's username according to the rules for creating usernames
Submitted by
okineadev
-
a month ago
(Last modified a month ago)
1
Class name validator
ECMAScript (JavaScript)
Validate if class name pass this criteria: A valid name should start with a letter (a-z)[A-Z] , an underscore (_), or a hyphen (-) which is followed by any numbers, hyphens, underscores, letters. A name should be at least two characters long. Cannot start with a digit, two hyphens or a hyphen fo...
Submitted by
Agustín Bouillet
-
a month 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
-
a month ago
1
Bitbucket URL Parser
ECMAScript (JavaScript)
A regular expression for extracting the author, repository name, and optional branch from a Bitbucket repository or tree URL. Handles both HTTP(S) and direct Bitbucket links.
Submitted by
Xain
-
2 months ago
1
GitLab URL Parser
ECMAScript (JavaScript)
A regular expression for extracting the author, repository name, and optional branch from a GitLab repository or tree URL. Handles both HTTP(S) and direct GitLab links.
Submitted by
Xain
-
2 months ago
(Last modified 2 months ago)
2
GitHub URL Parser
ECMAScript (JavaScript)
A regular expression for extracting the author, repository name, and optional branch from a GitHub repository or tree URL. Handles both HTTP(S) and direct GitHub links.
Submitted by
Xain
-
2 months ago
1
2
3
...
297
Community Library Entry
1
Regular Expression
ECMAScript (JavaScript)
'
(
\d
{1,3}
\.
\d
{1,3}
\.
\d
{1,3}
\.
\d
{1,3}
)
(
\s
*
,
\s
*
(
\d
{1,3}
\.
\d
{1,3}
\.
\d
{1,3}
\.
\d
{1,3}
)
)*
'
Open regex in editor
Description
Smax Micro Focus Regex
Submitted by
Resul MUŞLU
-
8 months ago
(Last modified 8 months ago)