title: c# regex long pattern with length test
body: <p>I need help using regex in c#. I have a string</p>
  
  <pre><code>a= lF-rwn-8343775
  b= Mr. Roshan K. Gujarathi
  </code></pre>
  
  <p>I want  regex pattern to match this and get a bool value in c# I have tried a pattern like this</p>
  
  <pre><code>return Regex.IsMatch(a, @"([a-zA-Z])-([0-9])*$");
  return Regex.IsMatch(b, @"([a-zA-Z]). ([a-zA-Z]) ([a-zA-Z]). ([a-zA-Z])*$");
  </code></pre>
  
  <p>I have also tried <code>return Regex.IsMatch(a, @"([a-zA-Z])-([a-zA-Z])-([0-9])*$");</code> for the a but no use</p>
  
  <p>But this is showing as false. I want to match the length in a i.e.,</p>
  
  <p>first 2 char then - then 2 char - then 8 int and same for the name like 
  2-4 char Then . 10-15 char then 'space' then 1 char. then 10-15 char</p>