JSFiddle - React, Tailwind, and code Playground
by ponyspy
JavaScript
function getSoundCloudInfo(url) {
return url.match('soundcloud\.com/player') ? url.split(/tracks\//)[1].split(/[&"]/)[0] : false;
}
alert(getSoundCloudInfo('123'))
by ponyspy
function getSoundCloudInfo(url) {
return url.match('soundcloud\.com/player') ? url.split(/tracks\//)[1].split(/[&"]/)[0] : false;
}
alert(getSoundCloudInfo('123'))