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 9,620 community submitted regex patterns...
3
How do I write a Regex to inspect Cisco Interfaces
PCRE (PHP <7.3)
I am asking for help in writing a regular expression to shorten this expression. I need the string below to search every interface within the range of 1 -24 to validate the configuration. If one interface does not have the required configuration then the expression fails. interface GigabitEtherne...
Submitted by
Pirates
-
9 years ago
3
images url match in text
PCRE (PHP <7.3)
no description available
Submitted by
Redfern.89
-
9 years ago
3
Div content
PCRE (PHP <7.3)
no description available
Submitted by
mohammadsaleh
-
9 years ago
3
Validate Base64 with new lines (e.g. GPG base64 messages)
PCRE (PHP <7.3)
This regular expression validates if given string is formatted in Base64, additional it accepts new lines, since payload can have new lines in it.
Submitted by
wpodgorski
-
9 years ago
3
Select all number greater than 36
PCRE (PHP <7.3)
no description available
Submitted by
Mansoor
-
9 years ago
3
Extract All Steam Keys
PCRE (PHP <7.3)
Extract all Steam Keys from a Given String
Submitted by
Ashesh Kumar
-
9 years ago
3
apache access log
PCRE (PHP <7.3)
parse the apache access log
Submitted by
pagu
-
9 years ago
3
Match a valid IPv4 or IPv6 address
PCRE (PHP <7.3)
This regular expression will match an IPv4 address as well as both compressed or uncompressed IPv6 address.
Submitted by
Tom Groeneveld, SevOne.com
-
9 years ago
3
french phone number + match right part
PCRE (PHP <7.3)
Matches french numbers (not special numbers like 115, 18). First matching group contains the right part without prefix (0, +33, 33, 033, or 0033).
Submitted by
xdrm-brackets
-
8 years ago
3
JSON recognition
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
3
strong password validation
PCRE (PHP <7.3)
This regex matches only when all the following are true: password has minimum 2 uppercase letters password has minimum 2 lowercase letters password has minimum 2 numerals (0-9) password has minimum 2 special characters, of the group !@#$%^&*()-_=+{};:, password has no more than 2 consecutive identic...
Submitted by
anonymous
-
7 years ago
4
utf-8 hex.
PCRE (PHP <7.3)
utf-8 hex. code armenian. Firs character regexp
Submitted by
Dyxx
-
10 years ago
4
Mask credit card
PCRE (PHP <7.3)
no description available
Submitted by
Albert Paris
-
9 years ago
4
Get stuff inside <a> tags
PCRE (PHP <7.3)
Get stuff inside tags, which are between certain words
Submitted by
Jerry
-
11 years ago
4
Strip multi-line (star) comments from JavaScript, while leaving any CDATA sections intact.
PCRE (PHP <7.3)
This regular expression removes multi-line (star) comments from JavaScript, while leaving any CDATA sections intact. Use the global (g) modifier to match them all (if you plan to use PHP's preg_replace, the g modifier is not necessary), and use the (s) modifier to make dots match newlines (this will...
Submitted by
Dane MacMillan
-
12 years ago
4
Strip out domain extensions except for Microsoft .net technologies.
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
12 years ago
4
YouTube Grabber Cleanup
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
4
html tags
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
4
Credit Card Number
PCRE (PHP <7.3)
Validates Credit Card Numbers of different type. Supports Visa, MasterCard, American Express, Diners Club, Discover and JCB Taken from http://www.regular-expressions.info/creditcard.html If you want to support only a particular type, customise it based on following....
Submitted by
Ehsan
-
9 years ago
0
URL matching
PCRE (PHP <7.3)
Complete url matching with storage of various parameters
Submitted by
hjpotter92
-
10 years ago
1
...
470
471
472
473
474
...
481
Community Library Entry
3
Regular Expression
PCRE (PHP <7.3)
/
(
\d
{1,3}
\.
\d
{1,3}
\.
\d
{1,3}
\.
\d
{1,3}
)
-
-
\[
(
\d
{2}
\/
[
a
-
zA
-
Z
]
{3}
\/
\d
{4}
:
\d
{2}
:
\d
{2}
:
\d
{2}
(
\+
|
\-
)
\d
{4}
)
\]
(
(
\"
(
GET
|
POST
|
HEAD
|
OPTIONS
)
)
(
.
+
)
(
HTTP
\/
1
\.
(
1
|
0
)
"
)
)
(
\d
{3}
)
(
\d
+
)
(
[
"
]
(
(
\-
)
|
(
.
+
)
)
[
"
]
)
(
[
"
]
(
.
+
)
[
"
]
)
/
Open regex in editor
Description
parse the apache access log
Submitted by
pagu
-
9 years ago