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,000 community submitted regex patterns...
1
URL domain test
ECMAScript (JavaScript)
tests to find if ("google.com") is the domain part of the URL
Submitted by
anonymous
-
9 years ago
1
Mac-address filtering
PCRE (PHP <7.3)
Trying to capture a mac-address structure
Submitted by
R. van den Hoek
-
9 years ago
1
First 3 words in sentence
PCRE (PHP <7.3)
no description available
Submitted by
hjgabrielsen
-
9 years ago
1
email regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
DateTime: DD-MM-YYYY HH:mm:ss
PCRE (PHP <7.3)
Validate and Capture (in 1000-2999 range) Leap-Year Correct
Submitted by
anonymous
-
12 years ago
0
negated special characters
PCRE (PHP <7.3)
no description available
Submitted by
Rimjhim
-
11 years ago
0
get params from json
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
-2
Remove empty HTML tags
PCRE (PHP <7.3)
Removes empty HTML tags. Was needed for old input clean-up and to keep a HTML parses from crashing. Looking for improvement on bottom test.
Submitted by
R. Sartorius
-
11 years ago
0
Match all html tags
PCRE (PHP <7.3)
no description available
Submitted by
Kostas Trichas
-
10 years ago
1
get image with classname
ECMAScript (JavaScript)
no description available
Submitted by
@cloverink
-
11 years ago
1
Number, comma and dot
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
(Last modified a year ago)
1
SSN
ECMAScript (JavaScript)
no description available
Submitted by
jay johnson
-
11 years ago
1
Phone numbers matcher
PCRE (PHP <7.3)
no description available
Submitted by
Oleksandr Sochka
-
11 years ago
1
Regex Formula for matching 2 letter Prefix URL's
PCRE (PHP <7.3)
I am trying to write a Regex formula that will match to all URL's with specifically 2 letter prefixes. I have a list of close to 1000 websites, and I need a formula that will collect data from any sites that start with "..".sporttu.com. For example, I want it to match to sites like ca.sporttu and ...
Submitted by
MikeRo
-
10 years ago
1
Find Word on A Text
PCRE (PHP <7.3)
This expression find a word in a text without limitation of "\b" statement
Submitted by
theShadow
-
10 years ago
1
REGEX
Python
no description available
Submitted by
anonymous
-
10 years ago
1
split URL in protokoll, domain, file(with path), parameter and anker
PCRE (PHP <7.3)
split URL in protokoll, domain, file(with path), parameter and anker
Submitted by
Candyman1332
-
9 years ago
0
Number with two max possible decimals
ECMAScript (JavaScript)
For float type inputs.
Submitted by
Juanma - https://github.com/juanmaa1414
-
10 years ago
1
PHP ReflectionParameter:__toString() parser
PCRE (PHP <7.3)
See http://www.php.net/manual/en/reflectionparameter.tostring.php
Submitted by
Erin Millard
-
12 years ago
1
Replace second (or further) html statement in a whole code
ECMAScript (JavaScript)
This regex replace the second tag content which has the prefix ":". If you want to replace the third, just increase the statement {1} to {2}, and so go on.
Submitted by
Caio Oliveira
-
11 years ago
1
...
852
853
854
855
856
...
900
Community Library Entry
2
Regular Expression
PCRE (PHP <7.3)
/
^
(?'Username'
[
-
\w\d
\.
]
+
?
)
(?:
\s
+
at
\s
+
|
\s
+
\[
at
\]
\s
+
|
\s
*
@
\s
*
|
\s
*
(?:
[
\[\]
@
]
){3}
\s
*
)
(?'Domain'
[
-
\w\d
\.
]
*
?
)
\s
*
(?:
dot
|
\.
|
(?:
[
\[\]
dot
\.
]
){3,5}
)
\s
*
(?'TLD'
\w
+
)
$
/
gm
Open regex in editor
Description
no description available
Submitted by
anonymous
-
11 years ago