Return a String Between 2 Strings


/ Published in: JavaScript
Save to your folder(s)

//Takes 3 params
//1) inString: string to search
//2) inThis: aka find this / the starting text
//3) inThat: the ending string.
//For example: myBetween("the cow jumped over the moon", "cow", "moon")
//will return " jumped over the "

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.