ez.no / exponential / documentation / reference / template operators / strings / ends_with
$input_string|ends_with( sequence )
| Name | Type | Description | Required |
|---|---|---|---|
| sequence | string | String to look for. | yes |
true if match, false otherwise.
The ends_with operator checks if the inputted string ends with a specified element/character/sequence (or not). Returns true if the sequence is found, false otherwise. This is basically the same operator as the "ends_with" operator within the arrays category.
{"Linux is great!"|ends_with("great!")}
returns true.
{"Linux is great!"|begins_with("great")}
returns false.
Comments