Regular Expressions 101

Community Patterns

Community Library Entry

-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 - 9 years ago