str.substring

The part of source from begin_pos (0 = first character) up to but not including end_pos (default: to the end).

str.substring(source: string, begin_pos: int, end_pos: int = na) -> string

Parameters

Example

str.substring("ESZ6", 0, 2) // "ES"