You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/website/docs/language/functions/strcontains.mdx

25 lines
434 B

---
page_title: strcontains - Functions - Configuration Language
description: |-
The strcontains function checks whether a given string can be found within another string.
---
# `strcontains` Function
`strcontains` function checks whether a substring is within another string.
```hcl
strcontains(string, substr)
```
## Examples
```
> strcontains("hello world", "wor")
true
```
```
> strcontains("hello world", "wod")
false
```