Three problems: (1) JavaScript does not support built-in modifiers, such as (?s) , (2) there is no other way to pass modifiers in the ASP validator, and (3) none of these facts matter, t supports single-line mode. Most people use [\s\S] to match any-in-new characters in JavaScript expressions.
EDIT: Here's how it would look in your case:
ValidationExpression="^[\s\S]{4,128}$"
[\s\S] is a character class that matches any space character ( \s ) or any character that is not a space character — in other words, any character. The dot metacharacter ( . ) Matches any character except a newline. Most regular expression flavors (such as .NET) support Singleline or DOTALL mode, which also makes dot characters, but not JavaScript.
source share