Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
([\wáâàãçéêíóôõúüÁÂÀÃÇÉÊÍÓÔÕÚÜ]+\-?\'?[a-zA-Z]+)
/
g

Description

(maybe not perfect) Name matching. Made it for my API to match Firstname and Lastname Params in order to check if that wasn't complete bullshit. Any advice would be accepted /o/

Submitted by Lurio - 8 years ago