github.com/hugorut/terraform@v1.1.3/website/docs/language/functions/strrev.mdx (about) 1 --- 2 page_title: strrev - Functions - Configuration Language 3 description: The strrev function reverses a string. 4 --- 5 6 # `strrev` Function 7 8 `strrev` reverses the characters in a string. 9 Note that the characters are treated as _Unicode characters_ (in technical terms, Unicode [grapheme cluster boundaries](https://unicode.org/reports/tr29/#Grapheme_Cluster_Boundaries) are respected). 10 11 ```hcl 12 strrev(string) 13 ``` 14 15 ## Examples 16 17 ``` 18 > strrev("hello") 19 olleh 20 > strrev("a ☃") 21 ☃ a 22 ``` 23 24 ## Related Functions 25 26 * [`reverse`](/language/functions/reverse) reverses a sequence.