Need to get the css file name from a link tag that is in a specific folder.
<link href="/assets/49f0ugdf8g/sub/style.css" -> style.css
Currently have
match(`<link .*?href="\/assets\/(.*?\.css)"/i)
Which returns the path minus “/assets/”.
Can it be extended to remove the rest of the path and just return the file name.
It would be simpler not to use regex and to use the native JS
String.splitfunction: