Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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(";")
);
 
PREVIOUS NEXT
Tagged: #javascript #text #words
ADD COMMENT
Topic
Name
9+6 =