title: Regular Expression for getting filename
body: <p>How to write a regular expression for return file name by trim its extensions,</p>
  
  <p>Following are my files,</p>
  
  <pre><code>externals/tinymce/plugins/emotions/img/smiley-smile.gif
  externals/tinymce/plugins/emotions/img/smiley-laughing.gif
  externals/tinymce/plugins/emotions/img/smiley-wink.gif
  externals/tinymce/plugins/emotions/img/smiley-tongue-out.gif
  externals/tinymce/plugins/emotions/img/smiley-cry.gif
  externals/tinymce/plugins/emotions/img/smiley-surprised.gif
  externals/tinymce/plugins/emotions/img/smiley-embarassed.gif
  </code></pre>
  
  <p>I would like to get filename without its extension and trim its smiley from staring using regular expresion,</p>
  
  <p>Expected Outputs, </p>
  
  <pre><code>smile, laughing, wink, tongue-out, cry, surprised, embarassed
  </code></pre>