slice
Extract part of a string or array.
Syntax
{{ value | slice:1 }}{{ value | slice:1,4 }}Example
Basic usage
1{2 "word": "hello"3}1{{ word | slice:1,4 }}1ellBehavior
- The first index is inclusive and the second is exclusive. Negative indexes count from the end.