let mySubString = str.substring( str.indexOf(":") + 1, // from character ':' str.lastIndexOf(";") // to character ';' );