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
indonesian p0rn word filter
PCRE (PHP <7.3)
find and replace bad and p0rn indonesian words
Submitted by
teknokoplak
-
11 years ago
-2
Header `Link` validator
ECMAScript (JavaScript)
no description available
Submitted by
Vaseker
-
10 years ago
-2
Date YYYYMMDD
PCRE (PHP <7.3)
Date in format YYYYMMDD Year between [1900-2099] No leap year check but month 02 is limited to 29 days.
Submitted by
Ahmed Z
-
10 years ago
-2
Matching HTML attributes
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
-2
Remove /* comments */ from CSS
PCRE (PHP <7.3)
no description available
Submitted by
JerseyMilker
-
10 years ago
-2
Version in Cordova config.xml
PCRE (PHP <7.3)
no description available
Submitted by
procek
-
10 years ago
-2
RegEx within tags
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
-2
example
Python
match
Submitted by
anonymous
-
10 years ago
-2
Password filter
PCRE (PHP <7.3)
a regular expression validate the passowrd. The criteria is that the password should contain atleast one upper case and one lower case letter.
Submitted by
HMK
-
10 years ago
-2
Maintain portion in the middle
PCRE (PHP <7.3)
no description available
Submitted by
HMK
-
10 years ago
-2
Basic grammar for regex matching of simplistic Makefiles
Python
This expression should both normal and wildcard targets and rules wrapped in simple sub-shell or varriable substitution enclosures.
Submitted by
Robert Butler <me@r-butler.net>
-
10 years ago
-2
Regex for 1 to 100 with or without decimal values
ECMAScript (JavaScript)
no description available
Submitted by
Ved
-
10 years ago
-2
Simplify HTML
PCRE (PHP <7.3)
no description available
Submitted by
LA
-
10 years ago
-2
1
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
-2
eee
Python
no description available
Submitted by
anonymous
-
10 years ago
-2
get all href=()
PCRE (PHP <7.3)
no description available
Submitted by
artyom lisovskij
-
10 years ago
-2
valid windows file name
ECMAScript (JavaScript)
no description available
Submitted by
Mitacha
-
10 years ago
-2
Decimal Number
ECMAScript (JavaScript)
Parse decimal numbers with optional thousands and/or decimal separator. #i18n #l11n #international
Submitted by
Andreas Pizsa
-
10 years ago
-2
link
Python
no description available
Submitted by
NTP-[SADAS]
-
10 years ago
-2
e164_basic
PCRE (PHP <7.3)
e164_basic
Submitted by
anonymous
-
10 years ago
1
2
3
4
5
6
...
902
Community Library Entry
2
Regular Expression
.NET 7.0 (C#)
@"
^
(?>
(?'protocol'
[
a
-
zA
-
Z
]
+
)
://
)?
(?'domain'
[
a
-
zA
-
Z0
-
9.
\-
_
]
*
)?
(?>
:
(?'port'
\d
{1,5}
)
)?
/
(?'path'
[
a
-
zA
-
Z0
-
9_
\-
%
]
+
)
(?:
(?>
\?
(?'query'
[
a
-
zA
-
Z0
-
9_
\-
=&%
]
+
)
)
(
)
|
(?>
#
(?'anchor'
[
a
-
zA
-
Z0
-
9_
\-
%
]
+
)
)
(
)
){0,2}
$
"
gm
Open regex in editor
Description
Matches protocol, domain, port, path, query and anchor as named capturing groups.
Submitted by
Jonathan
-
a year ago
(Last modified a year ago)