Regular Expressions 101

Community Patterns

First name Universal

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^(?=.{1,40}$)[a-zA-Z]+(?:[\s]+([a-zA-Z]*)?+)*$
/
gm

Description

This Regex is for first name and last name with multiple spaces

Submitted by Tej - 2 years ago