title: How to get file name with dash
body: <p>I hope you are all well. Please pardon me if my question is a total noob one, but I can't google the solution.</p>
  
  <p>I need to get part of the file's name and move it the file to specific folder (Category) respectively. Problem is, I will have multiple JPEG files with some specific format name, and are given to me by my boss' supplier.
  The files contain picture of the car's spare part and named with following format</p>
  
  <p>code - name - category - description</p>
  
  <p>I would need to get Category, and the only clue I got is the two dashes that split the code, name and the category. The code, name, and description are totally random in length and content.</p>
  
  <p>Example:</p>
  
  <p>1099 - ball joint - suspension - the ball joint for Honda Civic, reusable for Honda Accord.JPEG</p>
  
  <p>3275 - air filter - machine - air filter for Toyota Corolla, can also be used for Camry.JPEG</p>
  
  <p>What i need is to get the "suspension" and "machine" and move each of the files to their respective folder. I have no idea how to split and get the data after two dashes.</p>
  
  <p>Any respond would be much appreciated. Thank you. Have a great day.</p>