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
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
Community Patterns
Search among 15,200 community submitted regex patterns...
2
foder add prefix
ECMAScript (JavaScript)
auto prefix ("/") to folder
Submitted by
anonymous
-
7 years ago
2
IPv4 dotted decimal
ECMAScript (JavaScript)
This regexp was written for Regex Tuesday Challenge - Week Six.
Submitted by
anonymous
-
7 years ago
2
check name
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
2
URL parser
PCRE2 (PHP >=7.3)
The best way to parse URL via Regex. This can be used in javascript, PHP, etc.
Submitted by
Ivijan-Stefan Stipic
-
7 years ago
(Last modified 9 months ago)
2
Re Twitts
ECMAScript (JavaScript)
find retwitt hashtag on Twitters and add a label to highlight it.
Submitted by
anonymous
-
7 years ago
2
Re Twitts
ECMAScript (JavaScript)
find retwitt hashtag on Twitters and add a label to highlight it.
Submitted by
anonymous
-
7 years ago
2
Iranian birth date
PCRE (PHP <7.3)
Iranian birth date aka tarikh tavalod تاریخ تولد ایرانی ها
Submitted by
ehsanJamalian
-
6 years ago
2
shenasname code
PCRE (PHP <7.3)
Iranian identity code aka shenasname code شماره شناسنامه ایرانی ها
Submitted by
ehsanJamalian
-
6 years ago
2
Matching Character Class Transitions (customization of \b)
PCRE (PHP <7.3)
\b can be replicated as (?<=\w)(?=\W)|(?<=\W)(?=\w) Understanding how to create these class transitions can be beneficial for several reasons. In this instance, counting the results of this regex can be used to measure randomness within strings containing multiple character classes.
Submitted by
@notGeorgePBurdell
-
6 years ago
2
NSU ID Card Checker
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
2
Vehicle Identification Number (VIN)
ECMAScript (JavaScript)
Every vehicle has a unique Vehicle Identification Number (VIN). This 17 character alpha-numeric sequence and must NOT contain the letters I, O or Q (to avoid confusion with the similar looking digits). So, for example, SALVA2AE4EH877322 is valid, but SALVO2AE4EH877322 is not. By using the \b word ...
Submitted by
anonymous
-
6 years ago
2
Better version of UK postcode
PCRE (PHP <7.3)
This UK postcode regex will match all variants of postcode formats including inner London postcodes (eg SW1A), with optional space (both AL11XP and AL1 1XP are valid) It will reject any postcode that does not specify a valid postcode area. Each part of the postcode is also captured into a capture ...
Submitted by
anonymous
-
6 years ago
2
Match "A B C" where A+B=C (final version)
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
2
Código Postal
PCRE (PHP <7.3)
Verifica Código Postal [Portugal]
Submitted by
anonymous
-
5 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
-
3 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
-
3 years ago
1
...
28
29
30
31
32
...
760
Currency Format for EU
0
Regular Expression
ECMAScript (JavaScript)
/
(
^
(
(
[
€$£
]
?
\s
*
)?
(
(
\d
{1,3}
(
\.
\d
{3}
)+)
|
\d
+
)
)
(
,
\d
+
\s
*
)?
)
\s
*
$
|
(
^
(
(
(
\d
{1,3}
(
\.
\d
{3}
)+)
|
\d
+
)
)
(
,
\d
+
\s
*
)?
(
\s
*
[
$€£
]
?
)
\s
*
$
)
/
gm
Open regex in editor
Description
no description available
Submitted by
anonymous
-
4 years ago