JSFiddle - React, Tailwind, and code Playground

by jaubourg

JavaScript

var rurl_1_5_1 = /^([\w\+\.\-]+:)\/\/([^\/?#:]*)(?::(\d+))?/,
    rurl_git0 = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?|\/[^\/])/;
console.log( rurl_1_5_1.exec( "local:/file.html" ) );
console.log( rurl_git0.exec( "local:/file.html" ) );