I have a string:
var test = 'filename.hash12345678.js';
All i know at that stage is filename
itself. i don't know hash. Now, I need to do axios call, but because i don't know what comes after the filename, i can't put the actual path in the axios. how Can I get the whole path of the file ?
axios.get(`${filename}.whattoputhere`);
How can I achieve this with regex ?