Get Substring between two characters using javascript May 28, 2022 by Tarik You can try this var mySubString = str.substring( str.indexOf(":") + 1, str.lastIndexOf(";") );