Hi there, I need retrieve the name file witht extension
value = row.find('a').html();
I try with
- String.prototype.filename = function (extension) {
- var s = this.replace(/\\/g, '/');
- s = s.substring(s.lastIndexOf('/') + 1);
- return extension ? s.replace(/[?#].+$/, '') : s.split('.')[0];
- };
- nomeCopertina = value.filename();
but nomeCopertina is the name of file without the extension.
how can I fix it?