Answers for "js take a part of a string from a char to one another"

3

javascript get text between two words

//Gets the part of the string inbetween the : and the ;
var part = str.substring(
    str.lastIndexOf(":") + 1, 
    str.lastIndexOf(";")
);
Posted by: Guest on June-04-2020
5

javascript substring

// zero-based index, 'end' is excluded from result
myString.substring( start, end )
Posted by: Guest on December-04-2020

Code answers related to "js take a part of a string from a char to one another"

Code answers related to "Javascript"

Browse Popular Code Answers by Language