I\'m using the following Regex ^[a-zA-Z0-9]\\s{2,20}$
for input
The inp
*** Regex for all types of special characters and normal characters too with space in between them.
Declare the below in some variable and perform your task:
/^[a-zA-Z0-9 !@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]{2,20}$/
*** Regex for all types of special characters with spaces:
/^[ !@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]{2,20}$/
(answer is tried and tested!!)