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
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 12,960 community submitted regex patterns...
0
Match HTML comments with nested comments
PCRE (PHP <7.3)
Even if this is not valid HTML, it's more to understand the concept of recursion in patterns. It was an answer to a Stack overflow question: https://stackoverflow.com/questions/75282404/remove-comments-from-some-generated-html-which-can-be-invalid-with-nested-commen The idea is to use PCRE's recur...
Submitted by
Patrick Janser
-
2 years ago
0
carbon
Java 8
test1
Submitted by
anonymous
-
2 years ago
0
Business Address | WI | Trademark | USA
Java 8
s
Submitted by
anonymous
-
2 years ago
0
trim phone number
PCRE (PHP <7.3)
trim phone number
Submitted by
anonymous
-
2 years ago
0
Parcing2
PCRE (PHP <7.3)
aa
Submitted by
anonymous
-
2 years ago
0
Extract any http https and any url form
PCRE (PHP <7.3)
This will help you to extract any URL inside your text
Submitted by
Abdullah Alweheid
-
2 years ago
0
prince first try
ECMAScript (JavaScript)
im just trying this out
Submitted by
prince
-
2 years ago
(Last modified 2 years ago)
0
Make article title italic for PmWiki
ECMAScript (JavaScript)
Make article title italic for PmWiki
Submitted by
anonymous
-
a year ago
0
User-Agent
PCRE (PHP <7.3)
Parser
Submitted by
sn3kdev
-
a year ago
0
HTML Image Regex
Java 8
This code will find image files with .gif and .jpg extensions which are present in a HTML or CSS code. Here I am using the prefix '/asmproxy/' to identify the resource and then checking if extension ends with a .gif or .jpg. This Regex has its limitations as we are using prefix.
Submitted by
Suman Mummaneni
-
a year ago
0
CSS RGB validation
ECMAScript (JavaScript)
It validates the RGB expression doesn't break the CSS parser.
Submitted by
Martin
-
a year ago
(Last modified a year ago)
-1
MMM DDD YYYY
.NET 7.0 (C#)
FEB MON 2023
Submitted by
anonymous
-
a year ago
0
^[A-Z,a-z,\-, ,\&]+$
.NET 7.0 (C#)
Koray Bilgi, Text-Regex
Submitted by
anonymous
-
a year ago
0
01 Jan 2022 Mon 01:02:03
.NET 7.0 (C#)
01 Jan 2022 Mon 01:02:03
Submitted by
anonymous
-
a year ago
0
USD
.NET 7.0 (C#)
USD
Submitted by
anonymous
-
a year ago
0
Minimum 10 herhangi dijit
.NET 7.0 (C#)
Minimum 10 herhangi dijit
Submitted by
anonymous
-
a year ago
0
15.02.2022 15:00:00
.NET 7.0 (C#)
15.02.2022 15:00:00
Submitted by
anonymous
-
a year ago
0
Parse arguments
PCRE (PHP <7.3)
Parse arguments
Submitted by
Ofir Yariv
-
a year ago
0
MBI Regex
PCRE (PHP <7.3)
validates against the MBI format published by CDC
Submitted by
i410hlr
-
a year ago
0
chilean plate
ECMAScript (JavaScript)
A regex to parse Chilean automobile plates. It would use WWDDDD or WWWWDD
Submitted by
Dennis Tobar
-
a year ago
1
...
638
639
640
641
642
...
648
Anchor tag text and herf attribute value
0
Regular Expression
PCRE2 (PHP >=7.3)
/
<a
[^
>
]
+
href=
[
\"
|
\'
]
(
.
*
?
)
[
\"
|
\'
]
[^
>
]
*
>
(
(?:
.
(?!
\<\/
a
\>
)
)*
.
)
<
\/
a>
/
gm
Open regex in editor
Description
A RegEx for find out the match of the text in between a tag and href attribute value.
Submitted by
Mosrur
-
3 years ago