title: Regex pattern match a filename
body: <p>I have a file name which must look like this:</p>
  
  <pre><code>A123456_B123456_v1.10_File Name.xml
  </code></pre>
  
  <p>I tried to create a regex pattern which should validate if the file name is a match.</p>
  
  <p>The pattern is:</p>
  
  <pre><code>Regex regex = new Regex("A(\\d{6})_B(\\d{6})_v(\\d{1,3}\\.\\d{1,2})_(\\*?).xml");
  </code></pre>
  
  <p>It is not working.</p>
  
  <p>Can you fix this for me, please?</p>
  
  <p><strong>Working example</strong></p>
  
  <pre><code>string fileName = "A545656_B958432_v12.8_Upload 1.xml";
  
  Regex.IsMatch("A(\\d{6})_B(\\d{6})_v(\\d{1,3}\\.\\d{1,2})_(.*?)\\.xml", fileName)
  </code></pre>