Regular Expressions 101

Community Patterns

Name/Surname

-2

Regular Expression
ECMAScript (JavaScript)

/
([a-zA-Z]+\s)+[a-zA-Z]+
/

Description

Regex to constrain a text to have at least 2 strings. Compatible with 2nd-3rd-Nth names/surnames.

Submitted by BigL - 8 years ago