# tokens

Source: https://zotonic.com/docs/1760/tokens

URI: https://zotonic.com/id/1760

Language: en



Returns a list of tokens from input string, separated by the characters in the filter argument.

This is filter maps directly onto the `string:tokens/2` function in `stdlib` from the Erlang/OTP distribution.

Example:

```django
{{ "abc defxxghix jkl"|tokens:"x " }}
```

Will give the list of tokens: `["abc", "def", "ghi", "jkl"]`.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1760?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1760?language=en>)
