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 320 community submitted regex patterns...
1
INI Parser
.NET 7.0 (C#)
This regular expression has the following features that make it a convenient tool for working with text data. (?=\S) Positive lookahead, trims leading whitespace in text block. (? ... ) Group for text block, which can be comment, section, entry, or undefined string. (? ... ) Group for comment. Incl...
Submitted by
Pavel Bashkardin
-
6 months ago
(Last modified a month ago)
1
T-SQL find comments in script
.NET 7.0 (C#)
Finds the comments in a t-sql (tsql) script
Submitted by
Paw Jershauge
-
6 months ago
1
Госуслуги - сопроводительное письмо (недопустимые символы)
.NET 7.0 (C#)
Если вы подаёте электронное заявление через портал Госуслуг и набираете текст в стороннем редакторе, то при попытке отправить такое заявление может появиться ошибка о наличии недопустимых символов. С помощью этого регулярного выражения вы сможете найти недопустимые символы и скорректировать текст с...
Submitted by
NG256
-
6 months ago
1
Entity framework mappers
.NET 7.0 (C#)
This expression converts a modelbuilder to an IEntityTypeConfiguration class. Useful for tidying up the result of a scaffold operation.
Submitted by
MK
-
5 months ago
(Last modified 5 months ago)
1
password
.NET 7.0 (C#)
password validator
Submitted by
anonymous
-
5 months ago
1
Email Validation
.NET 7.0 (C#)
Basic email address validation example
Submitted by
Jeff Mills
-
4 months ago
1
Multiline CSS to one line CSS example (C#)
.NET 7.0 (C#)
Regex that will match/replace unnecessary whitespaces in CSS code.
Submitted by
Puchkov Eugene
-
4 months ago
(Last modified 4 months ago)
1
IP address without local
.NET 7.0 (C#)
Matches IP addresses excluding local addresses
Submitted by
pvl_zh
-
2 months ago
1
.NET CSV parser
.NET 7.0 (C#)
Parses CSV files using comma (,) as delimiter and double quote (") as quoted-field tag. Features: Respects empty fields, including at the beginning and at the end of the line Respects line breaks in quoted fields
Submitted by
kevinhp
-
2 months ago
1
Command line parser
.NET 7.0 (C#)
Supports parameters such as keys and values, also parameters enclosed in quotes.
Submitted by
Pavel Bashkardin
-
2 months ago
(Last modified 2 months ago)
1
Split Docker image into image name, tag and digest with all optional
Golang
Splits a Docker image string into the separate parts: image, tag, digest tag and digest are optional
Submitted by
Roemer
-
a month ago
1
Slash Separated Numbers
Golang
...
Submitted by
Anonymous
-
a day ago
2
domain for Google Data Studio (re2 dialect)
Golang
Matches subdomain, domain and top level in a field that contains a urls. https://www.whatever.you.want ---> whatever.you.want
Submitted by
anonymous
-
8 years ago
2
Zoom links, only with passwords
.NET 7.0 (C#)
Group 1 will have meeting id, group 2 will have password
Submitted by
anonymous
-
2 years ago
2
Mime type parser
.NET 7.0 (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
-
2 years ago
(Last modified 2 years ago)
2
Replace sub-strings in string
.NET 7.0 (C#)
Replace sub-strings in string
Submitted by
anonymous
-
2 years ago
2
Phone number for all countries
.NET 7.0 (C#)
Phone number for all countries. Valid symbols: ( ), -, whitespace
Submitted by
Alexander Smirnov
-
2 years ago
2
Get ip address (only ipv4) Validator
.NET 7.0 (C#)
Get ip address (only ipv4) Validator
Submitted by
Mr.Tang
-
2 years ago
(Last modified 2 years ago)
2
Aus Mobile number
.NET 7.0 (C#)
validates against multiple common formats
Submitted by
anonymous
-
2 years ago
2
URL Regex
.NET 7.0 (C#)
Matches protocol, domain, port, path, query and anchor as named capturing groups.
Submitted by
Jonathan
-
a year ago
(Last modified a year ago)
1
...
13
14
15
16
Community Library Entry
2
Regular Expression
.NET 7.0 (C#)
@"
^
(?<code>
\+
?
\d
{1,3}
)
[
-
\s
]
{0,}
(?<number>
\(
?
\d
{3}
\)
?
[
-
\s
]
{0,}
\d
{3}
[
-
\s
]
{0,}
\d
{2}
[
-
\s
]
{0,}
\d
{2}
)
$
"
gm
Open regex in editor
Description
Phone number for all countries. Valid symbols: ( ), -, whitespace
Submitted by
Alexander Smirnov
-
2 years ago