Return part of a string.
Arguments
Argument | Description |
---|---|
1 | Offset |
2 | Length |
Return part of a string.
substr
{{$text|substr:<Offset>}}
Argument | Description |
---|---|
1 | Offset |
2 | Length |
substr
{{$text = 'abcdef'}}
{{$text|substr:-1}}
{{$text|substr:-2}}
{{$text|substr:-3}}
{{$text|substr:0:-1}}
Output:
f
ef
def
abcde