JavaScript obtenga cadena entre dos caracteres
const oldString = 'John1Doe2'
const stringBetweenCharacters = oldString.match(/1(.*?)2/i)[1] //Doe
Tom Bomb
const oldString = 'John1Doe2'
const stringBetweenCharacters = oldString.match(/1(.*?)2/i)[1] //Doe
let mySubString = str.substring(
str.indexOf(":") + 1, // from character ':'
str.lastIndexOf(";") // to character ';'
);