JSFiddle - React, Tailwind, and code Playground
by aflynt
HTML
<div id="results">
hello
</div>
JavaScript
var u = "https://soco365.sharepoint.com/sites/CommEconDev/Pages/Test-About-Us.aspx";
var t;
t = u.split("/").toString().slice(-1).toString().toLowerCase().split(".").slice(0, 1).toString();
$('#result').append(t);