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...
2
手机正则
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2
Resolvers
PCRE (PHP <7.3)
APD SFs too general
Submitted by
anonymous
-
4 years ago
2
DD/MM pattern
PCRE (PHP <7.3)
Checks for DD/MM pattern must start and end with the digits no letters or other symbols allowed. Made by your good guy Levent M. (it accepts also 28+/02 but yhea one problem at a time right?)
Submitted by
anonymous
-
4 years ago
2
Replace singleline comments with `//` or `/*...*/`, and also multi-line comments in json files.
ECMAScript (JavaScript)
This has been validated against a tsconfig.json file that i'm using and nothing else. It should work fine though. You can use this to replace comments with vscode find and replace, but using the regex in the search field, and '$2' without quotes in the replace field.
Submitted by
anonymous
-
4 years ago
2
IPv4 with an undefined amount of 0 before every number
PCRE (PHP <7.3)
This regex matches every IPv4 address with or without 0s before every number. For example: 192.168.1.1 00000000000192.168.00000000000001.01
Submitted by
anonymous
-
4 years ago
1
Date - Extract & Validate - Fully tested - Format YYYY-MM-DD (dynamic parts separator / can use a different separator)
ECMAScript (JavaScript)
A fully tested regex that extracts and validates date parts using named capturing groups. \ Validations: Year must be preceded by nothing or a non-digit character...
Submitted by
Elie Grenon (DrunkenPoney) <elie.grenon.1@gmail.com>
-
4 years ago
2
lottery data picker
Python
for azlottoapi
Submitted by
anonymous
-
4 years ago
2
Simple Best URL Regex Match
PCRE (PHP <7.3)
Best URL Regex to match URL, This is simple and can match 64K of url regex under 20ms Regex Matches All Below and more: https://example.domain http://example.domain...
Submitted by
anonymous
-
4 years ago
2
IpAddress
Python
Ensure the ip address format is correct
Submitted by
aaa
-
4 years ago
2
Почти идеальный фильтр матов
PCRE (PHP <7.3)
Поиск матов в тексте
Submitted by
anonymous
-
4 years ago
2
Persian Mobile Number
PCRE (PHP <7.3)
Persian Mobile Number Matching Iran's international phone code is +98 and sometimes people use 0098. All mobile numbers starts with 9 after the code. So this pattern matches exactly a sequence of characters which starts with one of +989, 0098 or 09 prefixes and total count of characters after thes...
Submitted by
anonymous
-
4 years ago
2
Dutch zipcodes
PCRE2 (PHP >=7.3)
no description available
Submitted by
anonymous
-
4 years ago
(Last modified 8 months ago)
2
Dutch streetnames + housenumber + extension
PCRE2 (PHP >=7.3)
Validates a streetname + housenr + extension Somestreet 12 b
Submitted by
anonymous
-
4 years ago
(Last modified 8 months ago)
2
web log entry
PCRE2 (PHP >=7.3)
no description available
Submitted by
PepeRG
-
4 years ago
1
Matching decimals in european format (dot as grouping separator, comma as decimal separator)
Java 8
A regex for validating decimal numbers in the European number format (in many parts of Europe at least, including Germany). A comma is used as a separator for the decimal number, a dot as a separator for thousand places.
Submitted by
Florian Drees
-
4 years ago
(Last modified 4 years ago)
2
Comparison of decimals with operators such as <, >, !=, ==, <>
Java 8
Regex expression for comparing decimal numbers with the usual comparison operators such as (greater than), >= (greater than or equal to), != (not equal to), == (equal to), ... The regex also allows filtering of data from e.g. a database, whereby the first value is not needed, e.g. [FIELD] < 100
Submitted by
Florian Drees
-
4 years ago
2
Url
PCRE2 (PHP >=7.3)
Port https://regex101.com/library/cX0pJ8 to PCRE2 (PHP >= 7.3)
Submitted by
semivori
-
4 years ago
2
Link markdown with title text
ECMAScript (JavaScript)
Simple link mardown detection with a title text
Submitted by
Olpouin
-
4 years ago
2
Poker Hand type
PCRE (PHP <7.3)
Detect the poker hand from a sorted hand like this: with the figures and numbers sorted in descending order
Submitted by
ZeNairolf
-
4 years ago
2
Links in string
ECMAScript (JavaScript)
Match links (emails included) in string Replace it with HTML links
Submitted by
David Folch Agulles
-
4 years ago
(Last modified 4 years ago)
1
...
69
70
71
72
73
...
902
Community Library Entry
0
Regular Expression
PCRE2 (PHP >=7.3)
/
(
(
https
?
:
)?
\/\/
)?
(
(
[
\d\w
]
|
%
[
a
-
fA
-
f
\d
]
{2,2}
)+
(
:
(
[
\d\w
]
|
%
[
a
-
fA
-
f
\d
]
{2,2}
)+
)?
@
)?
(
[
\d\w
]
[
-
\d\w
]
{0,253}
[
\d\w
]
\.
)+
[
\w
]
{2,63}
(
:
[
\d
]
+
)?
(
\/
(
[
-+_~.
\d\w
]
|
%
[
a
-
fA
-
f
\d
]
{2,2}
)*
)*
(
\?
(
&
?
(
[
-+_~.
\d\w
]
|
%
[
a
-
fA
-
f
\d
]
{2,2}
)
=
?
)*
)?
(
#
(
[
-+_~.
\d\w
]
|
%
[
a
-
fA
-
f
\d
]
{2,2}
)*
)?
/
gmi
Open regex in editor
Description
determine if input text is an URL
Submitted by
anonymous
-
2 years ago