Hi all I am new here, hopefully someone can assist me with the following...
If I have ../PACKAGES/test/run.html stored in the variable myUrl and I want to extract whatever is between ../PACKAGES/ and /run.html how would I go about it?
I understand that in this instance I could use:
var actualUrl = myUrl.slice(12,16);
but the length of the string is dynamic, the only parts that stay the same are the start (../PACKAGES/) and end (/run.html).
I am new to java-script, so please be kind...any assistance would be much appreciated.