Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
(?![\!@#\$%\^&\*\(\)\:\"\<\>\?\/,] [a-z][1-9])^(([A-Z]{1}[a-z0.']+)+( ?[A-Z]{1}[a-z0.]+))*
/
mg

Description

Capitalized, with "O'","Mc","Mc " and "0" for some European names

Submitted by anonymous - 8 years ago