I need to get the last part of my URL with html on the end. So if I have this url http://step/build/index.html I need to get only index.html. I need to do this with javascript
let address = http://step/build/index.html;
let result = address.match(/html/i);
I tried this, but it doesn't work for me, maybe I make some mistakes. How do I get the last segment of URL using regular expressions Could someone help me and explain it in details? Thank you.
.html?