JSFiddle - React, Tailwind, and code Playground

by 2Yootz

JavaScript

var test="http://localhost:50000/apps/order-info"
//test="localhost:50000/apps/order-info";

var regex = /\/\/[^\/]+\/(.*)$/;

var match = regex.exec(test);
console.log(match);