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,020 community submitted regex patterns...
2
ES6 Imports/exports/dynamic: Getting the paths
ECMAScript (JavaScript)
It will match the paths of js modules imports, exports and dynamic imports.
Submitted by
anonymous
-
5 years ago
2
Regex tutorial
Java 8
Case insensitive match the whole word betwween \bword\b
Submitted by
anonymous
-
4 years ago
(Last modified a year ago)
2
Regex tutorial Case sensitive consonants
PCRE (PHP <7.3)
With regex you can count the number of matches. Can you make it return the number of uppercase consonants (B,C,D,F,..,X,Y,Z) in a given string? E.g.: it should return 3 with the text ABcDeFO!. Note: Only ASCII. We consider Y to be a consonant! Example: the regex /./g will return 3 when run against t...
Submitted by
anonymous
-
4 years ago
2
BEM
PCRE (PHP <7.3)
CSS Coding Guideline BEM (Block Element Modifier)
Submitted by
anonymous
-
4 years ago
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
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 7 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 7 months ago)
2
web log entry
PCRE2 (PHP >=7.3)
no description available
Submitted by
PepeRG
-
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
1
...
875
876
877
878
879
...
901
Community Library Entry
2
Regular Expression
PCRE2 (PHP >=7.3)
/
(?P<host>
\d
{1,3}
.\d
{1,3}
.\d
{1,3}
.\d
{1,3}
)
(
\s
-
\s
)
(?P<user_name>
[
\w
-
]
*
)
(
\s
\[
)
(?P<time>
\w
*
\/
\w
*
\/
\d
{1,4}
:
\d
{1,2}
:
\d
{1,2}
:
\d
{1,2}
\s
-
\d
{1,4}
)
(
\]
\s
\"
)
(?P<request>
.
*
)
(
"
)
/
gm
Open regex in editor
Description
no description available
Submitted by
PepeRG
-
4 years ago