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
Relevance
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 520 community submitted regex patterns...
1
date time validation
.NET 7.0 (C#)
Validation of the date of time, taking into account the high year in the format date.ToString("yyMMdd-hh_mm_ss").
Submitted by
Oleksii Serikov (alex@neochrom.biz)
-
2 years ago
0
NIgerian Phone Numbers RegEx Validation
PCRE2 (PHP >=7.3)
This RegEx validates whether a number is in the standard valid Nigerian mobile number format or not.
Submitted by
funmitoblessed
-
2 years ago
3
Caltrans EA validation with optional XX-XXXXXX entry and C##-#????#
.NET 7.0 (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
-
2 years ago
(Last modified 2 years ago)
1
Regex Card Name - Custom
.NET 7.0 (C#)
custom validation for card name with custom validation. only allow these characters Alphanumeric (A-Z a-z0-9) Special Characters (#&+()/)
Submitted by
anonymous
-
2 years ago
0
Git Commit Message Validation
Python
Validate a modified Version of https://udacity.github.io/git-styleguide/
Submitted by
anonymous
-
2 years ago
0
tas-branch-validation
Java 8
tas-branch-validation
Submitted by
doron-hafner
-
2 years ago
0
Yii regex email validation
PCRE2 (PHP >=7.3)
Extract this regex from EmailValidation.php
Submitted by
Qiang Xue
-
3 years ago
0
Email Validation
PCRE2 (PHP >=7.3)
Validates email
Submitted by
anonymous
-
3 years ago
0
Javascript HTTP URL Validation
PCRE2 (PHP >=7.3)
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
-
3 years ago
0
Strict URL Validation - 2
PCRE2 (PHP >=7.3)
https://regex101.com/ https://www.cloudways.com/blog/prevent-laravel-xss-exploits/ https://cloudways.com
Submitted by
Adwin
-
3 years ago
0
IPv6 address validation
PCRE2 (PHP >=7.3)
address validation from the first two segments of an IPv6 address
Submitted by
@unblog
-
3 years ago
0
IPv4 address validation
PCRE2 (PHP >=7.3)
validation of IPv4 addresses
Submitted by
@unblog
-
3 years ago
0
Strict URL validation
PCRE2 (PHP >=7.3)
(?!..]{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
-
3 years ago
0
Email
PCRE2 (PHP >=7.3)
This is used for simple email validation
Submitted by
Pritesh
-
3 years ago
0
links
PCRE2 (PHP >=7.3)
links validation
Submitted by
ahmedfawzi
-
3 years ago
0
CSS RGB validation
ECMAScript (JavaScript)
It validates the RGB expression doesn't break the CSS parser.
Submitted by
Martin
-
3 years ago
(Last modified 3 years ago)
0
Custom HTML/JavaScript email input validation
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
-
3 years ago
(Last modified 3 years ago)
0
AAU CPR validation (more rebust)
PCRE2 (PHP >=7.3)
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
-
3 years ago
0
DK CPR Validation
PCRE2 (PHP >=7.3)
Checks in input for matching social security numbers in Denmark
Submitted by
Found online
-
3 years ago
0
Mail address validation
ECMAScript (JavaScript)
Validates mail addresses
Submitted by
Sjoerd de Vries
-
3 years ago
1
2
3
4
5
6
...
26