Regular Expressions 101

Community Patterns

aliasFormat

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^[a-zA-Z0-9\-_. ]{1,50}$
/
gm

Description

Based on 'Allow only letters from A to Z, numbers from 0 to 9 , hyphen, dash, underscore and the period.'

Submitted by Arturo Acuña - 2 years ago (Last modified 2 years ago)