ez.no / exponential / documentation / reference / template operators / strings / contains
$input_string|contains( sequence )
| Name | Type | Description | Required |
|---|---|---|---|
| sequence | string | String to look for. | yes |
true if sequence is found, false otherwise.
Checks if a string contains a specific substring. If yes: returns true, if no: returns false. This is the same operator as the "contains" operator within the arrays category.
{"this is my string"|contains( "my" )}
returns true.
{"this is my string"|contains( "asdf" )}
returns false.
Comments