Regular Expressions 101

Library entries

Names with hyphens or single quotes

Vote

1

Regular Expression
pcre

/
^[a-zA-Z]+[\'-]{0,1}[a-zA-Z]+$
/
i

Description

Loading markdown...
Submitted by chakra_tavy - 6 years ago