title: Can I use my RegularExpression attribute instead of the DataAnnotations one?
body: <p>I'm trying to use a reusable regex class and use along with DataAnnotations in MVC.  Something like:</p>
  
  <pre><code>[RegularExpressionAttribute1(typeof(MyRegex))] 
  </code></pre>
  
  <p>This compiles but no error is thrown if the property doesn't match.  </p>
  
  <p>It all works with the standard </p>
  
  <pre><code>[RegularExpression(@"^\s*\d+(\.\d{1,2})?\s*$")]
  </code></pre>