title: Why regex validation is not working?
body: <p>I have a form with</p>
  
  <pre><code>&lt;td class="label"&gt;@Html.LabelFor(u =&gt; u.Link)&lt;/td&gt;
  &lt;td&gt;
      @Html.TextBoxFor(u =&gt; u.Link)
      @Html.ValidationMessageFor(u =&gt; u.Link)
  &lt;/td&gt;
  </code></pre>
  
  <p>The <code>Link</code> property has a <code>RegularExpression</code></p>
  
  <pre><code>[RegularExpression(@"^(([^\:\/?#]+)\:)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$", ErrorMessage= "invalid URL")]
  </code></pre>
  
  <p>But it is not being validated. If I add <code>[Required]</code> the field is validated.</p>
  
  <p>I'm including 3 scripts:</p>
  
  <ul>
  <li>jquery 1.5.2</li>
  <li>jquery.validate.min.js (default)</li>
  <li>jquery.validate.unobtrusive.min.js (default)</li>
  </ul>
  
  <p>Do I need to include another script? Why it doesn't work for Regex?</p>