I am using:
[RegularExpression(@\"^(\"\"|\\[)?[a-zA-Z0-9\']{1,125}(\"\"|\\])?$\")]
to make sure each line of a multiline textbox is properl
You can add an inline option to enable MultiLine without having to add a RegexOptions overload to the Attribute. That also ensures the expression will work in Javascript as well.
[RegularExpression(@"(?m)^(""|\[)?[a-zA-Z0-9']{1,125}(""|\])?$")]