app-string

On this page:

substring

Summary

Gets a substring using specified indicies.

Description

Returns the part of the string between the start and end indexes, or to the end of the string.

Route

POST /string/substring

Roles

admin

Parameters

DetailsExampleSchema
Name Type Required Description
str string yes The string to find a substring within
indexStart number yes The index of the first char to include in the returned substring
indexEnd number no The index of the first char to exclude from the returned substring

Return

DetailsExampleSchema
Name Type Description
substring string A new string containing the specified part of the given string