javascript get text between two words

JavaScript
//Gets the part of the string inbetween the : and the ;
var part = str.substring(
    str.lastIndexOf(":") + 1, 
    str.lastIndexOf(";")
);
Source

Also in JavaScript: