JSFiddle - React, Tailwind, and code Playground

by asou ryouma

JavaScript

let str = "http://example.com/hoge/h/hoge/hoge/hogeoge/hoge/__fuga__/?=vdsvdsvs";
    let result = str.match(/([^\/.]+)/g);
    alert(result[result.length - 1]);
        alert(result[result.length - 1]);
            alert(result);