My goal is to extract specific information from a URL:
Consider the following URL: https://www.example.com/Place/Name.html?randomtext
I want to retrieve only "Name" from outgoing links.
I attempted to achieve this using the following approach:
function() {
if ({{outgoing link}})
var Name= {{Click URL}};
return Name.split(""/")[2];
return Name.split(""?")[0];
}
So far, I have successfully extracted "place" with the following code snippet:
function() {
if ({{outgoing link}})
var Name= {{Click URL}};
return Name.split(""/")[2];