Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Social
Join the Discord community!
Follow me on twitter!
Send me an email
Donate
Donate
Donate through Paypal
Become a Github Sponsor
Info
Info
Find out what's new!
RegEx101 Wiki
Report bugs or make suggestions
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Community Patterns
Community Patterns
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Get help on Discord
Get help on IRC
Order By
Most Recent
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET (C#)
Rust
Sponsors
Community Patterns
Search among 320 community submitted regex patterns...
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
C# Regex Extract/Match Nested HTML Elements/Tags
.NET (C#)
With this C# regex, you can easily match/Parse Nested HTML tags. Example input: someTitle ...
Submitted by
w4po
-
2 years ago
2022-03-03 19:13
(Last modified 2 months ago)
2023-08-01 07:26
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Match any layer bracket pair (.NET)
.NET (C#)
Match any layer bracket pair
Submitted by
Yakumo Yukari
-
2 years ago
2022-03-10 03:13
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Caltrans EA validation with optional XX-XXXXXX entry and C##-#????#
.NET (C#)
Checks validity of an EA number first two digits 01-12 followed by hyphen then a number from 0-4 and then 4 numbers or uppercase letters and ending in a 1 or 4 for example "05-1J7601". Adding a capital C to the beginning is also accepted "C05-1J7601", along with the entry of 2 X's hyphen and 6 X's ...
Submitted by
RDJ@Ct
-
6 months ago
2023-04-07 19:11
(Last modified 6 months ago)
2023-04-07 19:51
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Zoom links, only with passwords
.NET (C#)
Group 1 will have meeting id, group 2 will have password
Submitted by
anonymous
-
a year ago
2022-08-17 19:04
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Replace sub-strings in string
.NET (C#)
Replace sub-strings in string
Submitted by
anonymous
-
9 months ago
2023-01-01 01:47
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Phone number for all countries
.NET (C#)
Phone number for all countries. Valid symbols: ( ), -, whitespace
Submitted by
Alexander Smirnov
-
8 months ago
2023-02-07 07:33
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Get ip address (only ipv4) Validator
.NET (C#)
Get ip address (only ipv4) Validator
Submitted by
Mr.Tang
-
7 months ago
2023-02-20 18:43
(Last modified 7 months ago)
2023-02-21 12:05
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Aus Mobile number
.NET (C#)
validates against multiple common formats
Submitted by
anonymous
-
6 months ago
2023-03-20 06:22
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
URL Regex
.NET (C#)
Matches protocol, domain, port, path, query and anchor as named capturing groups.
Submitted by
Jonathan
-
3 months ago
2023-07-06 08:43
(Last modified 3 months ago)
2023-07-06 08:45
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Matching decimals in european format (dot as grouping separator, comma as decimal separator)
Java 8
A regex for validating decimal numbers in the European number format (in many parts of Europe at least, including Germany). A comma is used as a separator for the decimal number, a dot as a separator for thousand places.
Submitted by
Florian Drees
-
3 years ago
2021-03-12 23:31
(Last modified 3 years ago)
2021-03-14 17:43
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Comparison of decimals with operators such as <, >, !=, ==, <>
Java 8
Regex expression for comparing decimal numbers with the usual comparison operators such as (greater than), >= (greater than or equal to), != (not equal to), == (equal to), ... The regex also allows filtering of data from e.g. a database, whereby the first value is not needed, e.g. [FIELD] < 100
Submitted by
Florian Drees
-
3 years ago
2021-03-13 14:23
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Markdown Heading
Java 8
Parses the text following a '#' and a space all the way up to the next return character. Additional #'s can be added for parsing of other type of headings!
Submitted by
Hansen
-
2 years ago
2021-12-14 21:41
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Asciidoc PlantUML Block
Java 8
Regex to select PlantUML Block in Asciidoc documents
Submitted by
anonymous
-
2 years ago
2022-03-15 13:11
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Regex tutorial
Java 8
Case insensitive match the whole word betwween \bword\b
Submitted by
anonymous
-
3 years ago
2020-07-01 10:00
(Last modified 2 months ago)
2023-07-20 07:05
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Mime type parser
.NET (C#)
A "simple" regex to parse mime types. Handles all commonly occurring parts of a mime type string such as: Type Subtype Subtype's with an extra extension (e.g. svg+xml) (Optional input) Multiple parameters (Optional input)...
Submitted by
Vespion
-
8 months ago
2023-02-14 14:11
(Last modified 8 months ago)
2023-02-14 16:03
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Chercher un Prénom ou un Nom
.NET (C#)
no description available
Submitted by
anonymous
-
7 years ago
2016-09-07 06:13
(Last modified 2 months ago)
2023-07-20 05:13
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
String doesn't start or end with . - '
Java 8
String doesn't start or end with . - '
Submitted by
VS
-
3 years ago
2021-03-16 12:41
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match all numbers
Java 8
Match all numbers from a string.
Submitted by
VS
-
3 years ago
2021-03-16 19:20
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Sınıfları Tek Tek seçme
Java 8
za
Submitted by
anonymous
-
2 years ago
2021-04-08 18:42
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
sim ou não
Java 8
expressão regular que só aceita s para sim e n para não
Submitted by
José Airton Neto
-
2 years ago
2021-04-10 23:28
1
2
3
4
...
16
Лямбды для OneScript
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
.NET (C#)
@"
^\s
*
\(
{0,1}
\s
*
(
(
\s
*
[
_a
-
za
-
я
]
[
a
-
z
\d
а
-
яё_
]
*
)
\s
*
,
{0,1}
\s
*
)+
\s
*
\)
{0,1}
\s
*
->
\s
*
(
(?>
.
|
\n
|
\r
)+
)
\s
*
$
"
gmi
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
6 months ago
2023-03-23 12:32