Apologies if this has been asked before but I couldn't find an answer.
If I have a string as follows
var myString = "/text/text/text/text/TEXT I REQUIRE/text.text";
How would I grab the TEXT I REQUIRE? It will always be between the last 2 forward slashes but the amount of slashes and other text could vary.
Many thanks,
Clint