Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
([A-Za-z0-9]\w+\s\w+)+
/
gm

Description

This Regex will help to match any first & last name from paragraph as one line, if you would to do the matching based on multi lines, add "gm" in the last of this query.

/([A-Za-z0-9]\w+\s\w+)+/gm

Submitted by Fares Alarabi - 7 years ago