JSFiddle - React, Tailwind, and code Playground

by Elena Lembersky

JavaScript

s="http://localhost:8888/#!/path/somevalue/needthis"
var final = s.substr(s.lastIndexOf('/') + 1);
alert(final)