Regular Expressions 101

Community Patterns

1...34567...876

Single Letter, No Numbers + Letter Exclusions

0

Regular Expression
PCRE (PHP <7.3)

/
^[^iIoOqQsSxXzZ0-9]{1}$
/
mg

Description

Allow users to only enter a single letter, no numbers, and determine which characters they are not allowed to enter (both uppercase and lowercase).

Submitted by anonymous - 3 years ago