ez.no / exponential / documentation / reference / template operators / strings / remove
$input_string|remove( offset, length )
| Name | Type | Description | Required |
|---|---|---|---|
| offset | integer | Start position of removal. | yes |
| length | integer | Length of removal. | yes |
chopped version of input string.
The remove operator simply removes characters from a string and returnes the chopped version. The offset parameter defines the start of the portion to be removed while the length prameter defines the length of the portion. Look at the examples.
"my string is simple"|remove( 3, 2 )
returns the string "my ring is simple".
Comments