Returns a substring from the specified string, beginning with start character position, up to the end character position. The start and end indexes are zero-based.
If not set, end is the length of the supplied string.
The end argument can also be a negative integer. A negative value -n means "trim the last n characters from the string".
substring(string:sting, start:number, end:number) -> string |
Name |
Type |
Description |
---|---|---|
string |
sting |
The input string. |
start |
number |
The zero-based starting index. |
end |
number |
The zero-based ending index. |
The following expression will return "Force":
substr('FlowForce',4) |
The following expression will return "t":
substr('Altova',2,3) |
The following expression will return "ltov":
substr('Altova',1,-1) |