Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/tstl/benchmark/internal/StringUtil.ts>StringUtil.betweens

TypeScript-STL (Standard Template Library, migrated from C++)
Go to Latest
method StringUtil.betweens
import { StringUtil } from "https://deno.land/x/tstl@v2.4.11/benchmark/internal/StringUtil.ts";

Fetch substrings.

Splits a string into an array of substrings dividing by specified delimeters of start and end. It's the array of substrings adjusted the between.

Parameters

str: string

Target string to split by between.

optional
start: string = [UNSUPPORTED]

A string for separating substring at the front. If omitted, it's same with split(end) not having last item.

optional
end: string = [UNSUPPORTED]

A string for separating substring at the end. If omitted, it's same with split(start) not having first item.

Returns

Array<string>

An array of substrings.