title: How to create regularExpressionAttribute with dynamic pattern come from model property
body: <pre><code>public class City
  {
     [DynamicReqularExpressionAttribute(PatternProperty = "RegEx")]
     public string Zip {get; set;}
     public string RegEx { get; set;} 
  }
  </code></pre>
  
  <p>I woud like to create this attribute where the pattern come from an other property and not declare static like in the original RegularExpressionAttribute.</p>
  
  <p>Any ideas would be appreciated - Thanks</p>