Regular Expressions 101

Community Patterns

First Names

0

Regular Expression
Python

r"
^[a-zA-Z\'\-\ ]{2,16}$
"
gm

Description

First names

  • Allows for a hyphen
  • Allows for a space
  • Allows for a apostrophe
Submitted by @thegamerbr1 - 4 years ago