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
Regex Shortcode
PCRE (PHP <7.3)
Check shortcode
Submitted by
khiconit
-
8 years ago
2
IP Address
PCRE (PHP <7.3)
IPv4 Address Input
Submitted by
anonymous
-
8 years ago
2
Eircode
PCRE (PHP <7.3)
Eircode validation for new postcodes identifiers in Republic of Ireland. Case-insensetive for easier user input. Added optional space separator to follow same pattern as in UK post codes and in examples used in eircode spec.
Submitted by
Arek Jaworski
-
8 years ago
2
Match multiline comments /* ... */
PCRE (PHP <7.3)
It won't match single line comments like this one: //* This comment won't be match */ ^ see the double / Works in PHP without the g modifier.
Submitted by
SimonaHalep
-
8 years ago
2
CSS @media selector
ECMAScript (JavaScript)
Matches a CSS @media selector, matches outer {} curly brackets, works with every CSS code, minified too.
Submitted by
emd4
-
8 years ago
2
php naming convension (classes, vars, functions, constants)
PCRE (PHP <7.3)
PHP Basic coding standard Naming Convension pattern: /^\pL_*$/
Submitted by
Najmuddeen Mohammed
-
8 years ago
2
Palindrome
ECMAScript (JavaScript)
Captures a palindrome of 9 digits or less
Submitted by
anonymous
-
8 years ago
2
foder add prefix
ECMAScript (JavaScript)
auto prefix ("/") to folder
Submitted by
anonymous
-
8 years ago
2
domain for Google Data Studio (re2 dialect)
Golang
Matches subdomain, domain and top level in a field that contains a urls. https://www.whatever.you.want ---> whatever.you.want
Submitted by
anonymous
-
8 years ago
2
IPv4 dotted decimal
ECMAScript (JavaScript)
This regexp was written for Regex Tuesday Challenge - Week Six.
Submitted by
anonymous
-
8 years ago
2
Ansible Host Var checking
Python
We had an issue where the "hosts=some_var" value could cause mass deployments if the wrong value was passed through. Specifically a comma with nothing surrounding it (i.e. "hosts=,"). This regex will allow us to fail when certain characters are present.
Submitted by
anonymous
-
8 years ago
2
check name
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 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
-
8 years ago
(Last modified a year 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
-
7 years ago
2
shenasname code
PCRE (PHP <7.3)
Iranian identity code aka shenasname code شماره شناسنامه ایرانی ها
Submitted by
ehsanJamalian
-
7 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
-
7 years ago
2
NSU ID Card Checker
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 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 wor...
Submitted by
anonymous
-
6 years ago
1
...
31
32
33
34
35
...
902
Community Library Entry
2
Regular Expression
PCRE (PHP <7.3)
/
(
(
http
|
https
)
(
\:\/\/
)
(
(
(
[
a
-
zA
-
Z_
\-
0
-
9
]
{1,2000}
)
(
\.
)
(
[
a
-
zA
-
Z_
\-
0
-
9
]
{1,2000}
)
(
\.
)
(
[
a
-
zA
-
Z_
\-
0
-
9
]
{1,16}
)
)
|
(
(
[
a
-
zA
-
Z_
\-
0
-
9
]
{1,2000}
)
(
\.
)
(
[
a
-
zA
-
Z_
\-
0
-
9
]
{1,16}
)
)
)
(
(
(
[
\/
a
-
zA
-
Z
\
_
\-
%0
-
9
\.\?\=
]
{1,3000}
)
|
(
\/
)
|
(
)
)
)
)
/
Open regex in editor
Description
took me way to long
Submitted by
timmyRS
-
9 years ago