cleanair4me
Technical User
- May 16, 2008
- 61
I want to make sure at least 3 characters are entered into a search field.
For example I dont want this to go by where it has spaces in beginning and space between 2 characters: a b
I tried the below regular expression but it didnt capture the spaces in between the characters. Please advise how I can do it?
For example I dont want this to go by where it has spaces in beginning and space between 2 characters: a b
I tried the below regular expression but it didnt capture the spaces in between the characters. Please advise how I can do it?
Code:
/^\s+|\s+$/g,""