/between

get string between 2 strings

Primary LanguageJavaScriptMIT LicenseMIT

between Build Status

get string between 2 strings


Installation

npm install ddo/between

Usage

var between = require('ddo/between');

between("hello world", 'hel', 'ld'); // => 'lo wor'
between("i'm so cool", 'm', 'oo'); // => ' so c'