Returns source text that is between start and end match strings. Returns undefined if start/end is not found.
start
end
// Yields ` orange `;between(`apple orange melon`, `apple`, `melon`); Copy
// Yields ` orange `;between(`apple orange melon`, `apple`, `melon`);
Source text
Start match
Optional
If undefined, the start string will be looked for
If true, looks for the last match of end (default). If false, looks for the first match.
Returns source text that is between
start
andend
match strings. Returns undefined if start/end is not found.