title: Regular expression is not working in mvc
body: <p>I am using regular expression in my mvc project but its not working. It is always showing error.
  can anyone tell me is it correct or not if yes then why is not working.
  Thats is my Model.</p>
  
  <pre><code>public partial class State
      {
          public int StateId { get; set; }
          [Required]
          [RegularExpression(@"^(([A-za-z]+[\s]{1}[A-za-z]+))$", ErrorMessage = "State Name must be alphabetic")]
          public string StateName { get; set; }
          [Required]
          [Range(1, 10)]
          public Nullable&lt;int&gt; CountryId { get; set; }
          [Required]
          public Nullable&lt;System.DateTime&gt; startdate { get; set; }
      }
  </code></pre>