title: Splitting a string in a bash script
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/918886/split-string-based-on-delimiter-in-bash">Split string based on delimiter in bash?</a>  </p>
  </blockquote>
  
  
  
  <p>I have a bunch of files named <code>test&lt;numbers or letters&gt;.&lt;number&gt;.out</code> so like <code>test1.1024.out</code> or <code>test2.2.out</code>. Is there some way I can use a regular expression like <code>^test.*?..(.*).out$</code> to parse out the middle number on each file and then be able to access the group?</p>