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,860 community submitted regex patterns...
1
Simple Telephone number regex
PCRE (PHP <7.3)
It accepts phone numbers of the form 0XX XXX XX XX (stylized here, it doesn't really accept spaces). Also, it can detect the international area code (e.g. +41 OR 0041 for Switzerland). It's not a good idea to rely on the groups (because they do not work for this reason. At ALL.
Submitted by
Adowrath
-
9 years ago
1
Search tags "a" and get link and text from tags
PCRE (PHP <7.3)
Search group "link=>text" in tags "a"
Submitted by
Andy
-
9 years ago
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 a year 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
...
34
35
36
37
38
...
593
IBAN (with spaces)
1
Regular Expression
PCRE (PHP <7.3)
/
[
a
-
zA
-
Z
]
{2}
[
\s
*
]
{0,}
[
0
-
9
]
{2}
[
\s
*
]
{0,}
[
a
-
zA
-
Z
]
{1,}
[
\s
*
]
{0,}
[
0
-
9
\s
]
{22,}
/
Open regex in editor
Description
This matches EU IBAN codes considering spaces here and there
Submitted by
ZioAldo
-
9 years ago
(Last modified a year ago)