JSFiddle - React, Tailwind, and code Playground
by godhong
HTML
<script src="https://raw.github.com/allmarkedup/jQuery-URL-Parser/master/purl.js"></script>
<div id="test">a</div>
JavaScript
var url = $.url('http://www.ubertool.org/dust_description.html').segment(1).slice(0,-5).slice(-2);
//var url=str.slice(1,5);
$("#test").html(url);