title: How to split the ending of a file name using JavaScript
body: <p>How can I split the ending of a file, like for instance I want file01 instead of file01.xlsx</p>
  
  <p>My written code:</p>
  
  <p><code>var filename = $v('P40_UPLOAD').split('\\').pop().split('/').pop();</code></p>
  
  <pre><code>var s = $s("P40_NAME",filename);
  </code></pre>
  
  <p><code>s.split('.')[0];</code></p>
  
  <p>Unfortunately it doens't work.</p>