Please enable JavaScript to use regex101
Regular
Expressions
101
Support Regex101
Social
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Order By
Most Recent
Most upvotes
Most downvotes
Highest Score
Lowest Score
Relevance
Filter by Flavor
PCRE2 (PHP)
JavaScript
Python
Golang
Java
.NET 7.0 (C#)
Rust
PCRE (Legacy)
Sponsors
Community Patterns
Search among community submitted regex patterns...
0/512
13
Conventional Commits validation
Created
·
2022-01-03 20:30
Updated
·
2022-04-05 20:20
Flavor
·
Python
This regex prevents the writing of non-standard conventional commits. I'm available on my github
Submitted by
Krisque
2
Argentine postal code validation
Created
·
2015-11-12 18:11
Flavor
·
Python
validation for Argentina postal codes, previous four digits + new CPA
Submitted by
jpaulini
2
Password Validation
Created
·
2016-02-03 13:16
Flavor
·
Python
Checks for password containing at least 1 Upper case, 1 lower case, 1 digit and 1 special character, all together with a length of at least 8. (This pattern allows any order of the requried elements, other than what was been distributed here before)
Submitted by
Tom Spielvogel
1
dd/mm/yyyy validation regexp
Created
·
2015-09-17 10:54
Flavor
·
Python
no description available
Submitted by
uknnown
1
Comprehensive URL Validation Regex
Created
·
2024-12-24 08:56
Flavor
·
Python
This regex pattern is designed to validate URLs with the following key features: Protocol Support: Optionally matches http:// or https://. Subdomain Handling: Supports optional www. and valid subdomains. Domain Name Validation: Ensures proper formatting of domain names: Prevents double hyphens (--) in domain or subdomain names. Enforces domain name length between 1 and 63 characters per label. Top-Level Domain (TLD): Validates TLDs with 2 or more alphabetic characters. Trailing Slash: Optionally allows a trailing slash (/) at the end of the URL. Example Matches: https://www.example.com http://example.org example.net/ Example Non-Matches: http://-example.com (invalid hyphen usage) https://example..com (double dot) ftp://example.com (unsupported protocol) Feel free to test and tweak as per your requirements! 🎯
Submitted by
Hadi Mousavi
1
Email validation
Created
·
2020-09-01 09:04
Flavor
·
Python
Email string validation, manage wildcard and subdomains
Submitted by
anonymous
1
E-mail validation regex
Created
·
2024-04-16 19:52
Flavor
·
Python
For Culver City Learn Teach Code 4/16/24 Regex obtained from: https://stackoverflow.com/a/21608456/2683447 List is subset taken from: https://gist.github.com/cjaoude/fd9910626629b53c4d25
Submitted by
anonymous
1
Ateco Code Validation
Created
·
2024-02-05 08:52
Flavor
·
Python
Ateco Groups Regex to identify the groups that make up the ateco code, based on its structure. More details: https://www.istat.it/it/archivio/17888 Valid Ateco: 01 - 28.2 - 24.45 - 46.74.1 - 46.73.22 Not Valid Ateco: 1 - 1.1 - 01.1.1 - 1.01.1
Submitted by
christian dalena
1
Email Address Validation
Created
·
2023-11-18 09:04
Updated
·
2023-11-18 09:05
Flavor
·
Python
RegEx pattern to match email addresses. Visit the detailed tutorial to learn more.
Submitted by
Minh Vu
1
Flexible phone validation
Created
·
2020-08-05 12:10
Flavor
·
Python
International / national format allowing space or dots as separator.
Submitted by
anonymous
1
date validation (yyyy-mm-dd)
Created
·
2016-04-03 15:22
Flavor
·
Python
no description available
Submitted by
anonymous
1
username validation
Created
·
2016-01-26 15:41
Flavor
·
Python
no description available
Submitted by
anonymous
1
Username Validation
Created
·
2016-01-12 06:21
Flavor
·
Python
username is 4-32 characters long no _,- or . at the beginning no _ or _. or . or .. or .- or _- inside no _,- or . at the end ^(?=.{4,32}$)(?![.-])(?!.*[.]{2})[a-zA-Z0-9.-]+(?<![.])$
Submitted by
Rajesh Jayaswal
-2
Email Validation
Created
·
2015-12-01 22:35
Flavor
·
Python
Full email validation with optional "." "-" "_"
Submitted by
Jakub Stasiak
0
Validation of Phone Numbers including optional country code and area code
Created
·
2023-01-06 16:03
Flavor
·
Python
numbers = ['(210) 867 5309', '+1 210.867.5309', '867-5309', '210-867-5309'] regex = r"^\(?\+?([0-9]{1,3})?[- (]?\(?([0-9]{3})?[-. )]?\(?([0-9]{3})[-. )]?\(?([0-9]{4})\)?\s?$" re.search(regex, phone_number)
Submitted by
Cristina Lucin
0
email validation
Created
·
2015-07-01 21:16
Flavor
·
Python
no description available
Submitted by
Yerko Palma
-1
mongo db email validation
Created
·
2015-09-02 09:30
Flavor
·
Python
email validation based on the restrictions for entering email adresses into a mongo db email field.
Submitted by
levire.com
-2
Validation of code ATECO Italian
Created
·
2015-08-19 12:09
Flavor
·
Python
/* -- This is a RegEx for validating one Italian ATECO code. -- For original specification visit: http://www.istat.it/it/archivio/17888 -- Valid: */ 1 01 01.2 01.02 01.02.3 01.02.03 // Not Valid: a asc 0123 012.3 013.456 123456 01/02/03
Submitted by
Marco Tonchella with the help of this Comunity that thanks a lot.
0
Email validation regex
Created
·
2022-07-23 17:46
Updated
·
2022-07-23 18:49
Flavor
·
Python
This email validation regex works perfectly (99.99%) for validating email address entries. The regex does not match email addresses with with the following characteristics: Addresses that begin/end with a special character Addresses with consecutive repeated special characters Special characters matched are: Period (".") Hyphen ("-") Underscore ("_") https://regex101.com/r/0NVXwu/1
Submitted by
Bright Owusu
0
Bandwidth value validation
Created
·
2022-07-22 17:30
Flavor
·
Python
Bandwidth value validation: 1-1023K 1-1023M 1-40G
Submitted by
Damien Stuart
0
Find ipv6 subnet
Created
·
2020-10-10 06:45
Flavor
·
Python
This regexp is able to find ipv6 subnets in the compressed form (e.g: 2001:db8::/32). It doesn't perform any validation to the ipv6 addresses itself though.
Submitted by
anonymous
0
Mexico-CURP-search-v1
Created
·
2019-11-01 13:24
Flavor
·
Python
Regular Expression that searches for CURP standard in Mexico. This is version 1 - 18 positions, with simple validation:`` A-ZA-Z[0-9[0-9[0-9H|MA-ZA-Z0-9
Submitted by
anonymous
0
ISO 8601 date external
Created
·
2017-06-12 12:55
Flavor
·
Python
http://www.pelagodesign.com/blog/2009/05/20/iso-8601-date-validation-that-doesnt-suck/
Submitted by
anonymous
0
Git Commit Message Validation
Created
·
2023-03-17 09:33
Flavor
·
Python
Validate a modified Version of https://udacity.github.io/git-styleguide/
Submitted by
anonymous
0
Password Validation
Created
·
2022-01-03 00:32
Updated
·
2022-01-03 00:34
Flavor
·
Python
8 char 1 special char 1 number char 1 lower char 1 upper char
Submitted by
you
0
MR Title validation
Created
·
2021-08-25 13:46
Flavor
·
Python
-
Submitted by
alkov
0
Email validation
Created
·
2019-06-20 09:44
Flavor
·
Python
no description available
Submitted by
anonymous
Community Library Entry
0
Regular Expression
Created
·
2018-02-07 17:34
Flavor
·
PCRE (Legacy)
/
^
(
[^
\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff
]
+
|
\x22
(
[^
\x0d\x22\x5c\x80-\xff
]
|
\x5c
[
\x00-\x7f
]
)*
\x22
)(
\x2e
(
[^
\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff
]
+
|
\x22
(
[^
\x0d\x22\x5c\x80-\xff
]
|
\x5c
[
\x00-\x7f
]
)*
\x22
)
)*
\x40
(
[^
\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff
]
+
|
\x5b
(
[^
\x0d\x5b-\x5d\x80-\xff
]
|
\x5c
[
\x00-\x7f
]
)*
\x5d
)(
\x2e
(
[^
\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff
]
+
|
\x5b
(
[^
\x0d\x5b-\x5d\x80-\xff
]
|
\x5c
[
\x00-\x7f
]
)*
\x5d
)
)*
$
/
gm
Open regex in editor
Description
Email Validation regex for RFC-2822
Submitted by
mminighin