Regularization takes a specific value?

for example, a url is

var url = "https://plugins.jetbrains.com/plugin/7316-stylus-support.html";

I want to get plugin/7316-stylus-support
.

Feb.27,2021

url.substring('https://plugins.jetbrains.com/'.length,url.lastIndexOf('.'))

Why should this be taken regularly?
in fact, you can use the location attribute in the page to extract the path directly, and then remove the following extension.


var url = 'https://plugins.jetbrains.com/plugin/7316-stylus-support.html';
console.log(url.match(/com\/(\S*).html/)[1])

/http[s]?:\/\/[^\/]+\/(.+)\.html/
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b31d3f-2bdb8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b31d3f-2bdb8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?