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...
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
Firt letter of names capitalize with exceptions
ECMAScript (JavaScript)
Check if brazilian names are imputed correctly. Ex: Paulo da Silva
Submitted by
William
-
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
-
9 years ago
3
JSON recognition
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 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
3
YouTubeVideoUrl
ECMAScript (JavaScript)
YouTubeVideoUrl
Submitted by
EdwardKonovalov
-
2 years ago
(Last modified 2 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
Capturing items from multiple lists using a single regex
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
4
Complete imgur link regex
Python
This regex grabs all kinds of imgur links and groups them in meaningful names aswell. This way you have full flow-control in your python-scripts.
Submitted by
Mio
-
10 years ago
4
Full e-mail validator
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
4
Mask credit card
PCRE (PHP <7.3)
no description available
Submitted by
Albert Paris
-
9 years ago
4
Prime number regex
PCRE (PHP <7.3)
no description available
Submitted by
originally "Abigail", comp.lang.perl.misc
-
11 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
1
...
883
884
885
886
887
...
901
Community Library Entry
2
Regular Expression
Python
r"
<a
href=
"
(
[^
"
]
+
)
"
>
(?:
\s
+
)
<img
src=
"
(
[^
"
]
+
)
\"
(?:
\s.
*
)
.
+
?
(?:
\s.
*
)
alt=
"
(
[^
"
]
+
)
"
"
gm
Open regex in editor
Description
no description available
Submitted by
anonymous
-
10 years ago