title: Fetch only a part of the filename from path
body: <p>I have a folder structure like
  /folder1/folder2/logs/my_sample_log_.txt</p>
  
  <p>I need only my_sample_log</p>
  
  <p>Could anyone of you please help me ?
  I have been struggling with this.</p>