0

Why the Regex take minimum 2 character to validate a string ?

/^[^\s]\w*[^\s]$/g

Exm- ab , bc will be validated true but a , b , c will not be validated true

0 Answers0