pepsipayton
New Member
I have a textbox field, and i want to regulate whats typed in.I dont want users to type more or less then 6-10 characters. here is my regex for limiting the characters ^.{6,10}$ I got this part working, but I also dont want users to type in whitespace(space). Now i am able to detect whitespace from the beginning of the input and ending of the input, but not if the user types in space in middle of the text. see example.\[code\]" testing" = regulator detects the space in the beginning. regex i use ^[^\s].+[^\s]$"testing " = regulator detects the space in the end. regex i use here is same as abow"test ing" = regulator does not detect the space in the middle. tried different regex with no luck.\[/code\]how can i create a regulator which will do all that i require?