title: Regex pattern with a slash
body: <p>I have  a property such as IdentityCode </p>
  
  <pre><code>string IdentityCode {get;set;}
  </code></pre>
  
  <p>my IdentityCode has three pattern <br />
  it has 6 digit <br /></p>
  
  <pre><code>######----&gt;332145 
  </code></pre>
  
  <p><br />
  or can get 6 digit with a slash </p>
  
  <pre><code>######/#-----&gt;332145/1
  ######/##-----&gt;332145/15
  </code></pre>
  
  <p>How can I set a pattern for this</p>