I have an issue where I need to use a RegularExpressionValidator to limit the length of a string to 400 Characters.
My expression was .{0,400}
My question: Is there a way to limit the length of characters to 400 without taking into consideration blank spaces?
I want to be able to accept blank spaces in the string but not count it in the length. Is this possible?
I pretty much agree with Greg, but here’s the regex you want:
@Boopid: If you really meant only the space character, replace \s with a space in the regex.