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 13,940 community submitted regex patterns...
0
Amazon order tracking link extractor from email plain text source
PCRE (PHP <7.3)
no description available
Submitted by
Sandeep Patel
-
7 years ago
0
Amazon order tracking
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Date January 5, 2016 Match with Capturing
PCRE (PHP <7.3)
Date January 5, 2016 Match
Submitted by
anonymous
-
7 years ago
0
Regular expression to match all special characters except
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Match HTML comments
PCRE (PHP <7.3)
no description available
Submitted by
padre629
-
7 years ago
0
Comics - Issues
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Search string with simple * wildcarding at beginning and end allowed
PCRE (PHP <7.3)
Search string which allows wildcard (*) at beginning and or end, but not in between. Search string itself allows almost any character but *
Submitted by
Tom42
-
7 years ago
0
regex log syslog
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
wtb
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
mac address
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Lab1 compact
Python
no description available
Submitted by
anonymous
-
7 years ago
0
Supprimer les retour chariot entre 2 guillemets
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
ASC file regex
PCRE (PHP <7.3)
no description available
Submitted by
AAndreev
-
7 years ago
0
RIS Daten teilen
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Eclipse simulator data file comments
PCRE (PHP <7.3)
Identify and group Eclipse data file comments
Submitted by
anonymous
-
7 years ago
0
rett
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Units.NET - parse pairs of value + unit abbreviation
PCRE (PHP <7.3)
As discussed: https://github.com/anjdreas/UnitsNet/pull/254#discussion_r116360898
Submitted by
Andreas Gullberg Larsen
-
7 years ago
0
Validate cellphones number venezuela
PCRE (PHP <7.3)
Validate cellphones number venezuela
Submitted by
anonymous
-
7 years ago
0
Simple password regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Hexadecimal Color
PCRE (PHP <7.3)
My First Regex
Submitted by
anonymous
-
7 years ago
1
...
454
455
456
457
458
...
697
Personal name (unicode)
0
Regular Expression
PCRE (PHP <7.3)
/
^
(?!
[
\x20\x27\x2D
]
|
.
*
?
[
\p{Lu}
]
{2}
|
.
*
?
[
\x20
]
{2}
|
.
*
?
[
\x27
]
{2}
|
.
*
?
[
\x2D
]
{2}
|
.
*
?
(
\x20\x2D
|
\x2D\x20
)
|
.
*
?
(
\x27\x2D
|
\x2D\x27
)
|
.
*
?
(
\x27
[
\w
]
+
\x27
(
\x20
|
$
)
)
)
[
\p{L}\x20\x27\x2D
]
+
$
(?<!
[
\x20\x2D
]
)
/
gm
Open regex in editor
Description
Validates personal names.
Conditions:
Must contain only letters (any unicode letter), spaces, apostrophes and hyphens
Must not start with a space, an apostrophe or a hyphen
Must not contain consecutive uppercase letters
Must not contain consecutive spaces
Must not contain consecutive apostrophes
Must not contain consecutive hyphens
Must not contain a space before or after a hyphen
Must not contain an apostrophe before or after a hyphen
Must not contain enclosing apostrophes ('single quote' style)
Must not end with a space or a hyphen
Must contain at least one character
Submitted by
Mattias Larsson
-
7 years ago