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
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 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 11,820 community submitted regex patterns...
1
OpenSSL certificates ASCII match all in chain
PCRE (PHP <7.3)
Match all certificate in a chain from a OpenSSL s_client output. Need for this come from a script that should be able to verify the root CA of a URL.
Submitted by
Evgeni Simeonov
-
9 years ago
1
Valida RFC mexicano
PCRE (PHP <7.3)
valida el formato del registro federal de contribuyentes de México.
Submitted by
Rogelio
-
9 years ago
1
Search regex
PCRE (PHP <7.3)
/** this regex should match most cases where the user forgets to put an operator somewhere and add an OR, it still does not handle nested square brackets but those are invalid anyways this page has an explanation https://regex101.com/r/fF7wO1/2 * the way this regex grabs conflicting matches is b...
Submitted by
warnock
-
9 years ago
1
count occurence of comma
PCRE (PHP <7.3)
no description available
Submitted by
Kevin H
-
9 years ago
1
starts with abc, has 123 and ends with xyz
PCRE (PHP <7.3)
#starts with abc, has 123 and ends with xyz abc123xyz
Submitted by
Kifah
-
9 years ago
1
Password validation
PCRE (PHP <7.3)
Check if the string has a minimum of 6 characters, at least 1 upper case char, at least 1 lower case char and at least 1 number with no spaces.
Submitted by
Webchef.de
-
9 years ago
1
geolocation coordinates string
PCRE (PHP <7.3)
Matches a geolocation coordinates string consisting of latitude and longitude separated by a comma with up to 7 decimal places precision.
Submitted by
Steve Piercy
-
9 years ago
1
Capture if pattern NOT found
PCRE (PHP <7.3)
Capture the input if the pattern is NOT found
Submitted by
Byron Jones
-
9 years ago
1
replace comma's between quoted text in csv
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Change Table names
PCRE (PHP <7.3)
no description available
Submitted by
Andrea
-
9 years ago
1
Words with only one spacing
PCRE (PHP <7.3)
Names with only one spacing allowed in between words.
Submitted by
Pavan Kataria
-
9 years ago
1
123
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Validate multiple Email-addresses separated by semicolon
PCRE (PHP <7.3)
Validate multiple Email-addresses separated by semicolon. No check on allowed domains, just a plain and simple check on the correct structure
Submitted by
maxthelup
-
9 years ago
1
IBAN (with spaces)
PCRE (PHP <7.3)
This matches EU IBAN codes considering spaces here and there
Submitted by
ZioAldo
-
9 years ago
(Last modified 10 months ago)
1
Date time AM/PM validation
PCRE (PHP <7.3)
no description available
Submitted by
vladimir
-
9 years ago
1
[\d]*
PCRE (PHP <7.3)
kostix@mail.ru
Submitted by
anonymous
-
9 years ago
1
US Phone Number Format Check
PCRE (PHP <7.3)
All Valid: 3334444 222333444 12223334444 333-4444 222-333-4444...
Submitted by
anonymous
-
9 years ago
1
Read PHPDoc as (key => value) like Wordpress plugins
PCRE (PHP <7.3)
[a-zA-Z0-9]+)\\s{1,}(?P.*)/im"; $str = "/\n@author Marian Gabriel\n@route /page/contact\n@name Contact Plugin\n@version 0.1beta\n@company VMG\n@type Page\n/\n\n"; preg_match_all($re, $str, $matches); function getValue($attr, $matches) {...
Submitted by
Marian Gabriel
-
9 years ago
1
5
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
7
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
...
34
35
36
37
38
...
591
IPv4 address validation
0
Regular Expression
PCRE2 (PHP >=7.3)
/
^
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
$
/
gm
Open regex in editor
Description
validation of IPv4 addresses
Submitted by
@unblog
-
a year ago