Skip to main content

Text: SubString

Slice a substring out of an input string by character indices (Unicode-safe). Out-of-range indices clamp to the string length; End ≤ Start produces an empty result.

Example
Start: 0, End: 5
Input: "hello world" → Output: "hello"

Start: 6, End: 11
Input: "hello world" → Output: "world"

Parameters

StartREQUIRED

Starting character index, inclusive (0-based).

EndREQUIRED

Ending character index, exclusive. Values past the input length clamp to the end.

Input

StringREQUIRED
Text to slice.

Output

String
The sliced substring.