mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
Update website/docs/language/functions (#227)
Signed-off-by: Marcin Białoń <mbialon@spacelift.io>
This commit is contained in:
@@ -15,7 +15,7 @@ to a string and returns a list of all matches.
|
||||
regexall(pattern, string)
|
||||
```
|
||||
|
||||
`regexall` is a variant of [`regex`](/terraform/language/functions/regex) and uses the same pattern
|
||||
`regexall` is a variant of [`regex`](/opentf/language/functions/regex) and uses the same pattern
|
||||
syntax. For any given input to `regex`, `regexall` returns a list of whatever
|
||||
type `regex` would've returned, with one element per match. That is:
|
||||
|
||||
@@ -48,10 +48,10 @@ false
|
||||
|
||||
## Related Functions
|
||||
|
||||
- [`regex`](/terraform/language/functions/regex) searches for a single match of a given pattern, and
|
||||
- [`regex`](/opentf/language/functions/regex) searches for a single match of a given pattern, and
|
||||
returns an error if no match is found.
|
||||
|
||||
If Terraform already has a more specialized function to parse the syntax you
|
||||
If OpenTF already has a more specialized function to parse the syntax you
|
||||
are trying to match, prefer to use that function instead. Regular expressions
|
||||
can be hard to read and can obscure your intent, making a configuration harder
|
||||
to read and understand.
|
||||
|
||||
Reference in New Issue
Block a user