title: Split file name into substrings
body: <p>I have a file name, from which I need to split and extract parts of the name for sorting it in a document register.</p>
  
  <p>The files are typically of the following format:</p>
  
  <blockquote>
    <p>"1098-GT-0006-R0 Report Template.docx"</p>
  </blockquote>
  
  <p>I need to split this string into the following three sections:</p>
  
  <blockquote>
    <p>Document Number: 1098-GT-0006</p>
    
    <p>Revision: 0</p>
    
    <p>Name: Report Template</p>
  </blockquote>
  
  <p>What is the best way to achieve this in vb.NET?</p>
  
  <p>The revision number could be anything from 0 to 20 (R0 - R20) and the first number, "1098" could be three, four or a five digit number. </p>