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 18,040 community submitted regex patterns...
1
INI Parser
.NET 7.0 (C#)
This regular expression has the following features that make it a convenient tool for working with text data. (?=\S) Positive lookahead, trims leading whitespace in text block. (? ... ) Group for text block, which can be comment, section, entry, or undefined string. (? ... ) Group for comment. Incl...
Submitted by
Pavel Bashkardin
-
9 months ago
(Last modified 4 months ago)
1
Date regex
PCRE2 (PHP >=7.3)
Date regex
Submitted by
anonymous
-
9 months ago
1
T-SQL find comments in script
PCRE2 (PHP >=7.3)
Converts the outcome from an SQL Agent Log (one liner) to multi lines, for easy read
Submitted by
Paw Jershauge
-
9 months ago
(Last modified 9 months ago)
1
T-SQL find comments in script
.NET 7.0 (C#)
Finds the comments in a t-sql (tsql) script
Submitted by
Paw Jershauge
-
9 months ago
1
T-SQL find text blocks in script
PCRE2 (PHP >=7.3)
Finds the text blocks in a t-sql (tsql) script
Submitted by
Paw Jershauge
-
9 months ago
1
first
PCRE2 (PHP >=7.3)
good
Submitted by
anonymous
-
9 months ago
1
Even or uneven
PCRE2 (PHP >=7.3)
matches if the string is an even integer
Submitted by
Holz
-
9 months ago
1
Number Expr
ECMAScript (JavaScript)
A "raw" expression matching numbers; anything from a simple 123 to -123,456.78e90 will be matched. Note: this may be vulnerable to ReDoS attacks when long multiline entries are available & a few hundered (or thousand depending on the length of the input) steps is a problem; check the Regex Debugger...
Submitted by
expo.moe
-
9 months ago
(Last modified 9 months ago)
1
Contraction-inclusive Word Pattern
PCRE2 (PHP >=7.3)
This regex will take both regular words and contractions
Submitted by
anonymous
-
9 months ago
1
Schaefer atlas extract labels
PCRE2 (PHP >=7.3)
Extract information about hemisphere and region name from Schaefer atlas labels. Personally I use this for nilearn.datasets.fetch_atlas_schaefer_2018 function where I access the labels property of the resulting variable, but you do you.
Submitted by
Julia Marcinkowska
-
9 months ago
1
Simple EIN (Employee Identification Number) format
ECMAScript (JavaScript)
An Employer Identification Number (EIN) is also known as a Federal Tax Identification Number, and is used to identify a business entity. Generally, businesses need an EIN. It expects 2 digits at start, then a dash ('-') and then 7 digits. No assumptions regarding the allowed prefixes, etc.
Submitted by
@uazure
-
9 months ago
1
Match Ports
PCRE2 (PHP >=7.3)
Match all Ports except 20,21,23,137,1378,139
Submitted by
anonymous
-
9 months ago
1
IsNumeric Test
PCRE2 (PHP >=7.3)
Tests for any value that can be converted to a T-SQL numeric type.
Submitted by
Noel Cruz
-
9 months ago
1
Match verbose, comma delimited, 64-bit hexadecimal, as sent by an ESP32 via the DallasTemperature getAddress method, for DS18B20 temperature sensors.
PCRE2 (PHP >=7.3)
Match a verbose, comma delimited, 64-bit hexadecimal, as sent by an ESP32, via the DallasTemperature getAddress method, for a DS18B20 temperature sensor. Used in Google Sheets, or Excel, Data Validation, after copying and pasting the input string from the Serial Monitor. The ESP32 interrogates the...
Submitted by
CharlesMartel732
-
9 months ago
1
Renamer Log file to CSV
PCRE (PHP <7.3)
Catches our log files renamed file names and adds them to CSV file
Submitted by
anonymous
-
8 months ago
1
Iraqi phone number validation regular expression (RegEx)
PCRE2 (PHP >=7.3)
It must be 10 or 11 digits (with optional leading zero). It must start with 7 (After leading zero) Supporting 5 telecom operators: Zain Iraq (079, 078) Asiacell (077) Korek Telecom (075)...
Submitted by
Areeb Al-Quraishi
-
8 months ago
(Last modified 8 months ago)
1
potential react or next component names from folder name
PCRE2 (PHP >=7.3)
this regex can be used to generate a potential component name out of a folder name NEXT js complient
Submitted by
Jean Luc Emmanuel VERHANNEMAN
-
8 months ago
1
Markdown images with preview
PCRE2 (PHP >=7.3)
Markdown Images with preview
Submitted by
anonymous
-
8 months ago
(Last modified 8 months ago)
1
Search users
PCRE2 (PHP >=7.3)
Wyszukuje użytkowników według imienia lub nazwiska lub imienia i nazwiska. Jeżeli na początku nie ma spacji i jest tylko jedno słowo, to szukane jest po imie. Jeżeli na początku jest spacja i jest tylko 1 słowo, to szukane jest według nazwiska. Jeśli są tylko 2 słowa, pierwsze słowo to imię, a drugi...
Submitted by
Mykhailo Hulii
-
8 months ago
1
semver 2.0.0 regex (named groups)
PCRE2 (PHP >=7.3)
Semver 2.0.0 rwith named groups for those systems that support them (PCRE [Perl Compatible Regular Expressions, i.e. Perl, PHP and R], Python and Go). Source: https://semver.org/
Submitted by
Soma Szelpal
-
8 months ago
(Last modified 8 months ago)
1
...
299
300
301
302
303
...
902
Community Library Entry
1
Regular Expression
PCRE2 (PHP >=7.3)
/
(?:
\d
{1,3}
\.
){3}
\d
{1,3}
\b
|
\b
(?:
[
A
-
Fa
-
f0
-
9
]
{1,4}
:
){7}
[
A
-
Fa
-
f0
-
9
]
{1,4}
\b
|
\b
(?:
[
A
-
Fa
-
f0
-
9
]
{1,4}
:
){0,6}
(?:
[
A
-
Fa
-
f0
-
9
]
{1,4}
)?
::
(?:
[
A
-
Fa
-
f0
-
9
]
{1,4}
:
){0,5}
(?:
[
A
-
Fa
-
f0
-
9
]
{1,4}
)?
/
gm
Open regex in editor
Description
Regex pattern detection for IPv4 addresses and IPv6 addresses in zero compression format.
Submitted by
Lewis Wigmore
-
a year ago
(Last modified a year ago)