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(";")
);
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(";")
);
javascript get text between two strings
var mySubString = str.substring(
str.lastIndexOf(":") + 1,
str.lastIndexOf(";")
);
how to get a substring between two strings from a string in js
//I would use indexOf instead of lastIndexOf, to find the first occurrence of the string
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us