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 360 community submitted regex patterns...
0
Sanitize CSV Export Expression for regex.replace (this regex) with empty string
.NET 7.0 (C#)
see owasp recommendation for things to remove from a csv export. this expression matches on following characters [. , ; + = - @ ' "] also carriage return make sure to clear strings for whitespace and choose your preferred methods for additional security from the examples in the owasp documentation...
Submitted by
anonymous
-
2 years ago
0
sdfsfd
.NET 7.0 (C#)
sdfdsf
Submitted by
anonymous
-
2 years ago
0
Key - Value extractor
Java 8
Key - Value extractor
Submitted by
anonymous
-
2 years ago
0
Inner field values extraction
Java 8
Inner field values extraction
Submitted by
anonymous
-
2 years ago
0
Any WhiteSpace Character
.NET 7.0 (C#)
Any WhiteSpace Character
Submitted by
anonymous
-
2 years ago
0
for-orth
Java 8
For orth
Submitted by
gastipatis
-
2 years ago
0
custom email
.NET 7.0 (C#)
custom email
Submitted by
anonymous
-
2 years ago
0
SQL Query Scalar Field Names Extractor
Java 8
SQL Query Scalar Field Names Extractor
Submitted by
Dobri
-
2 years ago
0
7zip file type regex
.NET 7.0 (C#)
header of output from > 7z i
Submitted by
ninmonkey
-
2 years ago
0
title and page
.NET 7.0 (C#)
find title and page in text
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
0
Match Phone Number: 03## ####### OR +92 3## #######
Java 8
Can be used to match Pakistani SIM card Numbers
Submitted by
anonymous
-
2 years ago
0
Match token and optional convert to type in string
.NET 7.0 (C#)
I use this in a JSON template together with JObject data to create a JSON string
Submitted by
rkleinkromhof
-
2 years ago
0
IP Table Parse IPID
.NET 7.0 (C#)
Match 1 is the IPID
Submitted by
Tres Little
-
2 years ago
0
Verify email
Java 8
Regex for email
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
0
URL
.NET 7.0 (C#)
(@url)([\s]=[\s])(?:')(.)(?:')(?:;)
Submitted by
anonymous
-
2 years ago
0
AsciiDoc delimited block listing
Java 8
https://docs.asciidoctor.org/asciidoc/latest/blocks/delimited/
Submitted by
aisbergde
-
2 years ago
(Last modified 2 years ago)
0
AsciiDoc Subscript
Java 8
https://docs.asciidoctor.org/asciidoc/latest/text/subscript-and-superscript/
Submitted by
aisbergde
-
2 years ago
0
AsciiDoc Superscript
Java 8
https://docs.asciidoctor.org/asciidoc/latest/text/subscript-and-superscript/
Submitted by
aisbergde
-
2 years ago
0
AsciiDoc hard line break
Java 8
https://docs.asciidoctor.org/asciidoc/latest/blocks/hard-line-breaks/
Submitted by
aisbergde
-
2 years ago
0
AsciiDoc underline
Java 8
https://docs.asciidoctor.org/asciidoc/latest/text/text-span-built-in-roles
Submitted by
aisbergde
-
2 years ago
1
...
5
6
7
8
9
...
18
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)