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
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 15,000 community submitted regex patterns...
There does not seem to be anything here
Community Library Entry
1
Regular Expression
PCRE2 (PHP >=7.3)
/
^\s
*
(?:
[
a
-
z
]
{2,}
\.
\s
*
)?
(?:
[
a
-
zñ
]
{2,}
\s
*
[
a
-
zñ
]
*
,
\s
*
[
a
-
zñ
]
+
\s
*
[
a
-
zñ
]
*
(?:
[
a
-
zñ
]
\.
?
\s
*
){0,3}
|
[
a
-
zñ
]
+
\s
*
[
a
-
zñ
]
*
\s
+
(?:
[
a
-
zñ
]
\.
?
\s
*
){0,3}
[
a
-
zñ
]
{2,}
\s
*
[
a
-
zñ
]
*
)
\s
*
(?:
[
a
-
zñ.,
]
)*
$
/
gim
Open regex in editor
Description
Full Name convention either as "
firstname lastname
" or "
lastname, firstname
"
FirstName must be at least 1character long. LastName must be at least 2characters long.
Accepts multiple worded name
Optional Middle Initial (with period, up to 2 maximum initials). Placement either middle or last depending on full name convention.
Optional Name prefix (with period), Name suffix
Allowed alphabet characters only A to Z and Ñ. Allowed symbol are comma and period on valid places only. regex must be set ignore casing.
Forgiving extra whitespace typographical error.
Safely usable in VBA Regex.
Submitted by
cpq.pinoy
-
8 months ago
(Last modified 8 months ago)