I\'m using the following Regex ^[a-zA-Z0-9]\\s{2,20}$ for input
^[a-zA-Z0-9]\\s{2,20}$
The inp
Try ^[a-zA-Z0-9 ]{2,20}$.
^[a-zA-Z0-9 ]{2,20}$
And are you sure your original expression worked? The quantifier {2,20} is only applied to the \s, and not to your set inside [].
{2,20}
\s
[]