app-string

On this page:

slice

Summary

Extracts part of a string.

Description

Extracts a section of a string and returns it as a new string, without modifying the original string.

Route

POST /string/slice

Roles

admin

Parameters

DetailsExampleSchema
Name Type Required Description
str string yes The string to slice
beginIndex number yes The zero-based index at which to begin extraction
endIndex number yes The zero-based index before which to end extraction

Return

DetailsExampleSchema
Name Type Description
slicedString string A new string containing the extracted section of the string