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 2,120 community submitted regex patterns...
1
localhost ip's with port
Python
Matches localhost ip range with optional port capture: 127.X.X.X or 127.X.X.X:PORT ToDo: check valid ip address.
Submitted by
Rodrigo M. A.
-
9 years ago
1
Look Forward
Python
Between two strings.
Submitted by
Online Cop
-
9 years ago
-1
Integer or decimal number
Python
no description available
Submitted by
Rick de L
-
9 years ago
-2
adsf
Python
adfadfad
Submitted by
anonymous
-
9 years ago
1
Simple global regex
Python
Regex for finding tempratures in a text
Submitted by
anonymous
-
9 years ago
2
Argentine postal code validation
Python
validation for Argentina postal codes, previous four digits + new CPA
Submitted by
jpaulini
-
9 years ago
2
math chain comparisons with optional matched paren
Python
no description available
Submitted by
anonymous
-
9 years ago
2
preprocess text files to include only readable and text words
Python
for large corpus cleaning
Submitted by
aliabbas petiwala
-
9 years ago
2
parse tag data with multiline
Python
parse tag data with multiline
Submitted by
Ali GÖREN
-
9 years ago
1
Currency Detector Python
Python
Currency Detector for Python
Submitted by
Joao Graca
-
9 years ago
-3
TD data from html table
Python
no description available
Submitted by
Deepak Bansal
-
9 years ago
1
Match parenthesis
Python
Matches anything wrapped in parenthesis. Can handle nested and consecutive sets of parenthesis.
Submitted by
Nic Roland
-
9 years ago
1
logical operators
Python
no description available
Submitted by
Nicolas
-
9 years ago
1
ofsream open file C++
Python
match of.open("test.txt");
Submitted by
Денис суховерхов
-
9 years ago
2
ofstream ifstream file C++
Python
match ofstream of("test.txt", ios_base::app); ofstream of("test.txt", ios_base::trunc); ofstream of("test.txt", ios_base::binary);
Submitted by
Денис Суховерхов
-
9 years ago
2
Password Validation
Python
Checks for password containing at least 1 Upper case, 1 lower case, 1 digit and 1 special character, all together with a length of at least 8. (This pattern allows any order of the requried elements, other than what was been distributed here before)
Submitted by
Tom Spielvogel
-
9 years ago
2
test
Python
no description available
Submitted by
anonymous
-
9 years ago
1
MAC address capturing
Python
Captures MAC addressess in any format: aa bb cc dd ee ff aa-bb-cc-dd-ee-ff aa:bb:cc:dd:ee:ff aabb.ccdd.eeff aabbccddeeff
Submitted by
Gilian
-
9 years ago
2
Regex for Chemical Compounds
Python
no description available
Submitted by
Haiming Zhao
-
9 years ago
1
Tag Text
Python
Match text between html tags
Submitted by
Si
-
9 years ago
1
...
5
6
7
8
9
...
106
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)