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 300 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Username regex
.NET (C#)
Matches alphanumeric, @, . , -
Submitted by
Ethan Pedersen
-
a year ago
2022-08-16 16:34
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Negative lookbehind
.NET (C#)
There is not word boundary between the >< and as there seem to be at least 1 or more uppercase characters, then quantifier can be + to match 1 or more times. If you don't want to split at the start of the string, creating an empty entry in the result list, you can assert using a negative lookbehind ...
Submitted by
anonymous
-
a year ago
2022-08-15 20:46
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Camel Case - digits allowed - Upto 3 upper case letters
.NET (C#)
Camel Case - digits allowed - Upto 3 upper case letters To be proper camel case a word with digits allowed and upto 3 upper case letters, a word: MUST start with a lower case alphabet (a through z) MUST have no spaces, punctuation or special characters CAN have at most 3 uppercase alphabets in a ro...
Submitted by
anonymous
-
a year ago
2022-08-12 21:23
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Camel Case - no digits allowed - Upto 3 upper case letters
.NET (C#)
To be proper camel case a word with no digits allowed and upto 3 upper case letters, a word: Must start with a lower case alphabet (a through z) Must have no digits (0 - 9) MUST have no spaces, punctuation or special characters Can have at most 3 uppercase alphabets in a row Can end in an uppercase ...
Submitted by
anonymous
-
a year ago
2022-08-12 21:13
(Last modified a year ago)
2022-08-12 21:16
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
URLs and Emails RegEx
.NET (C#)
A neat regular expression to extract web urls and emails from a paragraph or a text stream.
Submitted by
kosalanuwan
-
a year ago
2022-08-08 16:36
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
UK PostCode Validation
.NET (C#)
Flexible postcode validation with or without space as outlined here, but added optional space for flexibility https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/488478/Bulk_Data_Transfer_-_additional_validation_valid_from_12_November_2015.pdf
Submitted by
anonymous
-
a year ago
2022-08-06 16:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
ISO 8601:2004E Duration
.NET (C#)
Regex for validating ISO 8601:2004E durations, complete with named capture groups.
Submitted by
Sakura Akeno Isayeki
-
a year ago
2022-08-02 06:22
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
nginx access regex loki
Golang
nginx access log regex
Submitted by
Lethisa Putri
-
a year ago
2022-07-28 11:51
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
oracle_package_new_type
Golang
find/replace oracle package body new type
Submitted by
anonymous
-
a year ago
2022-07-27 07:20
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Letras, número e traço
Golang
Substitui tudo que não for letra, número e traço
Submitted by
anonymous
-
a year ago
2022-07-26 13:49
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Markdown link
.NET (C#)
Regex for parsing markdown link. Named group "text", "url" and "alt.
Submitted by
anonymous
-
a year ago
2022-07-22 11:51
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
XAML invert Grid.Column and Grid.Row to Grid.Row and Grid.Column
.NET (C#)
Inverts the 2 attributes
Submitted by
anonymous
-
a year ago
2022-07-12 10:44
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Guid parser
.NET (C#)
Guid parser
Submitted by
anonymous
-
a year ago
2022-07-11 19:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Nepali phone number regex
.NET (C#)
(\+977)?9\d{8}
Submitted by
anonymous
-
a year ago
2022-07-02 10:49
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
No leading or trailing spaces
.NET (C#)
No leading or trailing spaces
Submitted by
anonymous
-
a year ago
2022-06-27 08:36
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Ipv4 with optional port
.NET (C#)
ipv4 with optional port
Submitted by
anonymous
-
a year ago
2022-06-27 08:13
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match all filenames in any URL including those with ANSI escaped characters (dotNET version)
.NET (C#)
Match all filenames in any URL including those with ANSI escaped characters (dotNET version)
Submitted by
The Fourth Bird
-
a year ago
2022-06-26 16:08
(Last modified a year ago)
2022-06-27 09:05
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match using named groups in .NET (C#)
.NET (C#)
Developed for posh-git
Submitted by
marckassay
-
a year ago
2022-06-17 14:14
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
匹配邮箱
Golang
[A-Za-z0-9]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+) `
Submitted by
Lintao
-
2 years ago
2022-05-23 06:48
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Mikrotik Regex Firewall Log Golang
Golang
Regex para uso com Grafana Loki Log feito via Mangle, com prefix $user do freeradius.
Submitted by
Vitor Abbade
-
2 years ago
2022-05-18 12:47
1
...
3
4
5
6
7
8
9
...
15
Sanitize percentage input into bare real number
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
.NET (C#)
@"
^
*
(
[
\+\-
]
?
)
*
(?>
(
[
0
-
9
]
+
)
[
.,
]
?
(
[
0
-
9
]
*
)
|
[
.,
]
?
(
[
0
-
9
]
+
)
)
*
%
?
*
$
"
Open regex in editor
Description
Loading markdown...
Submitted by
Moravuscz
-
a year ago
2022-11-23 13:23