I am trying to write a regex that will verify that user input is greater than X number of characters without spaces. I mainly try to filter out leading and trailing spaces, while preserving that the input is larger than the X characters; characters can be any, but not spaces (space, tab, return, new line). This is the regex that I used, but it doesn't work:
\s.{10}.*\s
I use C # 4.0 (Validator Validation Validator) if that matters.
source share