Please enable JavaScript to use regex101
Regular
Expressions
101
Support Regex101
Social
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Most upvotes
Most downvotes
Highest Score
Lowest Score
Relevance
Filter by Flavor
PCRE2 (PHP)
ECMAScript (JavaScript)
Python
Golang
Java
.NET 7.0 (C#)
Rust
PCRE (Legacy)
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among community submitted regex patterns...
0/512
-3
Strict email validation
Created
·
2015-02-28 10:35
Flavor
·
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-2
Iranian Mobile Numbers
Created
·
2023-06-11 10:41
Flavor
·
PCRE2 (PHP)
To Validate Iranian Operators Number Validation
Submitted by
AMAISGOD
-2
Email Validation
Created
·
2015-12-01 22:35
Flavor
·
Python
Full email validation with optional "." "-" "_"
Submitted by
Jakub Stasiak
-2
Multiple Email Address Validation
Created
·
2015-10-26 06:50
Flavor
·
ECMAScript (JavaScript)
Validates Multiple email addresses seperated by comma.
Submitted by
Rajesh Badam
-2
Valid Email
Created
·
2015-10-19 17:05
Flavor
·
ECMAScript (JavaScript)
Use this Regex for server-side validation also with some slight modifications like so for .NET -- @\w+(-+.']\w+)@\w+([-.]\w+)\.[a-zA-Z0-9]{2,6}([-.{2,6})*;
Submitted by
Fred Scales
-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.
-2
Date Validation
Created
·
2015-08-12 19:23
Flavor
·
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-2
cron expression
Created
·
2015-06-16 12:40
Flavor
·
ECMAScript (JavaScript)
This is a relaxed cron validation, meaning that any valid cron expression should pass this; but not anything that passes regex validation is a good cron expression. Used as preliminary validation in web ui. Supports all special characters. Includes seconds field.
Submitted by
enlait
-1
IP6 Validator Address (Simple)
Created
·
2022-10-30 06:44
Updated
·
2022-10-30 06:45
Flavor
·
PCRE2 (PHP)
Short form validation of an IP6 address Less complex than other examples I have seen around
Submitted by
anonymous
-1
Email
Created
·
2022-10-13 04:30
Flavor
·
ECMAScript (JavaScript)
validation email
Submitted by
anonymous
-1
Email Regex
Created
·
2022-04-25 21:57
Flavor
·
ECMAScript (JavaScript)
Email Validation Regex
Submitted by
anonymous
-1
VALIDATE CELLPHONE - BRAZIL
Created
·
2020-06-09 15:18
Flavor
·
PCRE (Legacy)
MASK TO VALIDATION, WHEN YOU NEED THE AREA CODE OPEN. TO A CELLPHONE WITH 9 OR 8 DIGITS + AREA CODE OF 2 DIGITS 11 987654321 -> IT WILL GET 98765
Submitted by
anonymous
-1
Email validation
Created
·
2018-02-27 11:23
Flavor
·
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-1
Australian local and international mobile validation
Created
·
2015-11-24 01:02
Flavor
·
ECMAScript (JavaScript)
no description available
Submitted by
Damien Capocchi
-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
-1
UK Postcode Validation
Created
·
2015-04-10 22:38
Flavor
·
ECMAScript (JavaScript)
Matches all valid, current UK Postcodes, including Girobank and non-geographic postcodes, irrespective of whether they contain a space. It does not include overseas territories. Adapted from the BS7666 postcode rules at http://www.cabinetoffice.gov.uk/govtalk/schemasstandards/e-gif/datastandards/address/postcode.aspx
Submitted by
Ti Marner
0
Validation of Date in the format YYYY-MM-DD
Created
·
2025-11-04 10:36
Updated
·
2025-11-05 19:05
Flavor
·
PCRE2 (PHP)
Validation of Date in the format YYYY-MM-DD
Submitted by
David
0
HTML5 email regex
Created
·
2023-07-09 03:48
Flavor
·
PCRE2 (PHP)
Source Mozilla.
Submitted by
anonymous
0
IP address validation
Created
·
2023-06-14 05:09
Flavor
·
PCRE2 (PHP)
IP address validation
Submitted by
anonymous
0
URL Validation
Created
·
2023-06-09 06:36
Flavor
·
.NET 7.0 (C#)
Can be used to validate on URL's.
Submitted by
anonymous
0
EmailValidation
Created
·
2023-06-07 05:52
Flavor
·
PCRE2 (PHP)
This is an Email validation using RegExp.
Submitted by
anonymous
0
Official Emeil validation Regex
Created
·
2023-06-01 13:35
Flavor
·
ECMAScript (JavaScript)
Regex from the Mail::RFC822::Address: regexp-based address validation Access here
Submitted by
Igor Julliano Aguiar Sotero
0
NIgerian Phone Numbers RegEx Validation
Created
·
2023-05-02 15:57
Flavor
·
PCRE2 (PHP)
This RegEx validates whether a number is in the standard valid Nigerian mobile number format or not.
Submitted by
funmitoblessed
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
tas-branch-validation
Created
·
2023-03-16 10:07
Flavor
·
Java
tas-branch-validation
Submitted by
doron-hafner
0
Yii regex email validation
Created
·
2023-03-01 14:30
Flavor
·
PCRE2 (PHP)
Extract this regex from EmailValidation.php
Submitted by
Qiang Xue
0
Email Validation
Created
·
2023-02-28 21:46
Flavor
·
PCRE2 (PHP)
Validates email
Submitted by
anonymous
0
Javascript HTTP URL Validation
Created
·
2023-02-22 22:14
Flavor
·
PCRE2 (PHP)
Use to validate basic website URLs with or without http://. I took bits and pieces of other regexes I found and compiled into one that worked well for my purposes.
Submitted by
Daniel Ecker
0
Strict URL Validation - 2
Created
·
2023-02-18 07:20
Flavor
·
PCRE2 (PHP)
https://regex101.com/ https://www.cloudways.com/blog/prevent-laravel-xss-exploits/ https://cloudways.com
Submitted by
Adwin
0
IPv4 address validation
Created
·
2023-02-17 10:07
Flavor
·
PCRE2 (PHP)
validation of IPv4 addresses
Submitted by
@unblog
0
IPv6 address validation
Created
·
2023-02-17 10:08
Flavor
·
PCRE2 (PHP)
address validation from the first two segments of an IPv6 address
Submitted by
@unblog
0
Strict URL validation
Created
·
2023-02-10 11:57
Flavor
·
PCRE2 (PHP)
(?!..]{2})((https?|http)\:\/\/)?([a-z0-9+!(),;?&=\$.-]+(\:[a-z0-9+!(),;?&=\$.-]+)?@)?([a-z0-9-.-.]?(?!.\/).)\.([a-z]{2,1000})(\:[0-9]{2,5})?(\/([a-z0-9+\$-]\.?)+)\/?(\?[a-z+&\$.-)?(#a-z_.-)?
Submitted by
Adwin Raj GP
0
Email
Created
·
2023-02-08 08:40
Flavor
·
PCRE2 (PHP)
This is used for simple email validation
Submitted by
Pritesh
0
links
Created
·
2023-02-06 19:58
Flavor
·
PCRE2 (PHP)
links validation
Submitted by
ahmedfawzi
0
CSS RGB validation
Created
·
2023-02-06 02:30
Updated
·
2023-02-06 03:11
Flavor
·
ECMAScript (JavaScript)
It validates the RGB expression doesn't break the CSS parser.
Submitted by
Martin
0
Custom HTML/JavaScript email input validation
Created
·
2023-01-25 20:09
Updated
·
2023-01-25 21:15
Flavor
·
ECMAScript (JavaScript)
Only meant as an initial client-side filter to override the default input[type=email] validation done according to spec, which is much too simple. Inputs passing this regex MUST get validated in a more fine-grained manner again when received on the server-side
Submitted by
Neel Yadav
0
AAU CPR validation (more rebust)
Created
·
2023-01-25 11:33
Flavor
·
PCRE2 (PHP)
This one makes sure to not match 31 in months where it does not exist and cuts off february at 28. Might need to do special check for 29th of february ..?
Submitted by
anonymous
0
DK CPR Validation
Created
·
2023-01-25 09:41
Flavor
·
PCRE2 (PHP)
Checks in input for matching social security numbers in Denmark
Submitted by
Found online
0
Mail address validation
Created
·
2023-01-16 13:06
Flavor
·
ECMAScript (JavaScript)
Validates mail addresses
Submitted by
Sjoerd de Vries
0
Password validation
Created
·
2023-01-16 13:01
Flavor
·
ECMAScript (JavaScript)
Regex used for password validation. A password match the following: At least 8 characters in length Minimum of 1 lower-case character Minimum of 1 upper-case character Minimum of 1 digit Minimum of 1 special character (non-whitespace)
Submitted by
Sjoerd de Vries
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
Find validation name and name inside parentheses
Created
·
2022-12-23 03:40
Flavor
·
ECMAScript (JavaScript)
Find validation name and name inside parentheses
Submitted by
nghilq
0
email valid
Created
·
2022-12-12 02:29
Flavor
·
Java
email validation
Submitted by
Hoot
0
VLAN ID Validation Regex
Created
·
2022-12-09 13:32
Flavor
·
Golang
VLAN ID Validation Regex Please use first segment or second depending on the Extended VLAN usage such as "1-256" or "1-4096" : Non-extended VLAN IDs (1-256), check v2 of the regex entry ^(25[0-6]|(2[0-4]|1\d|[1-9])\d|[1-9])$ Extended VLAN IDs (1-4096), check v3 of the regex entry ^(409[0-6]|(40[0-8]|[1-3]\d\d|[1-9]\d|[1-9])\d|[1-9])$
Submitted by
ulgena
0
IPv4 Address Validation Regex
Created
·
2022-12-09 13:08
Updated
·
2022-12-09 13:09
Flavor
·
Golang
IPv4 Address Validation Regex
Submitted by
ulgena
0
Validate Date Represented by Integer 1900 - 2099
Created
·
2022-11-19 16:22
Flavor
·
PCRE (Legacy)
Very simple validation expression that will validate a date in the range of 19000101 through 20991231. These formats are very popular for partitioning and representing dates as Long values or Integers. This does not check for Leap year values, or the months with varying number of days. Please Note: this will return a match on 20220231 even though this is not a valid date. Additional validations should be used if Leap years and Days of the Month should be verified as well.
Submitted by
Edward Rush
0
Email Validation
Created
·
2022-11-08 16:29
Flavor
·
ECMAScript (JavaScript)
invalid email abc abc.com valid email address abc@mail.com abc@mail.nz abc@mail.co.nz abc123@mail.com abc.def@music.com invalid email prefix abc-@mail.com abc..def@mail.com .abc@mail.com abc#def@mail.com valid email prefix abc-d@mail.com abc.def@mail.com abc@mail.com abc_def@mail.com invalid domain suffix abc.def@mail.c abc.def@mail#archive.com abc.def@mail abc.def@mail..com valid domain suffix abc.def@mail.cc abc.def@mail-archive.com abc.def@mail.org abc.def@mail.com fully-qualified-domain@example.com
Submitted by
anonymous
0
Date validation in yyyy-mm-dd format
Created
·
2022-10-29 19:03
Flavor
·
ECMAScript (JavaScript)
Comes with choice of four separators
Submitted by
Regular-Expressions.info
0
Validation code FETLOCK pt-br
Created
·
2022-10-21 16:47
Updated
·
2023-10-24 02:28
Flavor
·
ECMAScript (JavaScript)
Validação de código de barras boleto padrão "FEBRABAN - Federação Brasileira de Bancos".
Submitted by
Rafaella Cintra
0
Safe EMail validation (protected against ReDos) v2
Created
·
2022-10-08 06:42
Flavor
·
ECMAScript (JavaScript)
Safe EMail validation protected against ReDos attack. Exclude all non conventionnal special char like #{%... only accept . - and _. . EMail can't start with number or specials chars. Domain accept only one subdomain and ip are available 63 Maximum characters accepted Check for valid IP
Submitted by
J.Delauney
Load More
Community Library Entry
1
Regular Expression
Created
·
2015-12-14 22:02
Flavor
·
ECMAScript (JavaScript)
/
^
[
a
-
zA
-
Z0
-
9!#$%&’*+
\/
=?^_`{|}~.-
]
+
@
(
[
a
-
zA
-
Z0
-
9
\\
-
]
+
\.
)*(
[
a
-
zA
-
Z
]
){2,}
$
/
Open regex in editor
Description
ab@ab
Submitted by
anonymous