Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
(^[A-Z\s?]{1,21}$)
/
g

Description

"ASDF ASDF ASDF ASDF A" OK "ASDF ASDF ASDF ASDF AS" NOK "asfd ASDF ASDF ASDF" NOK "ASDF ASDF ASDF AsdF" NOK "ASDF ASDF ASDF A12F" NOK

Submitted by Matthias G. - 8 years ago