I am using Asp.net and C #.
I need to force the user to add only text from 4 to 128 characters to the TextBox Control.
I would like to use the ValidationExpression property to control validation.
Could you specify the correct regular expression ?
Notes. I am using this code right now, but it does not seem to work properly if there are two spaces or line breaks in the TextBox text box
ValidationExpression="^.{4,128}$"
Thank you for your time!
source share