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 140 community submitted regex patterns...
0
Наличие слова без учета регистра в тексте
.NET 7.0 (C#)
Наличие слова без учета регистра в тексте
Submitted by
anonymous
-
3 years ago
3
Match any layer bracket pair (.NET)
.NET 7.0 (C#)
Match any layer bracket pair
Submitted by
Yakumo Yukari
-
3 years ago
0
Name and ID in curly braces
.NET 7.0 (C#)
For a string that starts with '{' and ends with '}' looks for a name and id value within the curly braces. The name group should be trimmed when used to remove leading and trailing whitespace. Ex. {Test10} will result in 2 groups being returned Group 1: Test Group 2: 10
Submitted by
Ryan Felton
-
3 years ago
4
C# Regex Extract/Match Nested HTML Elements/Tags
.NET 7.0 (C#)
With this C# regex, you can easily match/Parse Nested HTML tags. Example input: ...
Submitted by
w4po
-
3 years ago
(Last modified a year ago)
-1
Grep from A to B
Rust
no description available
Submitted by
anonymous
-
4 years ago
(Last modified a year ago)
0
ListOfSourcesSeparatedBySpaces
.NET 7.0 (C#)
A list of sources like accepted by the CSP:frame-ancestors header, plus the keywords of the X-Frame-Options header for some backward compatibility
Submitted by
anonymous
-
5 years ago
(Last modified 6 months ago)
0
Remove CDATA tags
.NET 7.0 (C#)
no description available
Submitted by
anonymous
-
7 years ago
(Last modified a year ago)
1
Chercher un Prénom ou un Nom
.NET 7.0 (C#)
no description available
Submitted by
anonymous
-
8 years ago
(Last modified a year ago)
1
...
5
6
7
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)