--- title: "replace hex-codes()" slug: "basic-replace-hex-codes" updated: 2026-08-12T08:13:14Z published: 2026-08-12T08:13:14Z canonical: "docs.lobstersoftware.com/basic-replace-hex-codes" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # replace hex-codes() This function searches a text **a** for occurrences of values specified as hex values in **b** and replaces them with the hex value in **c** at the same position. ## Parameters | Parameter | Description | | --- | --- | | a | Text in which to search. | | b | Comma-separated list of hexadecimal values to search for. | | c | Comma-separated list of hexadecimal values to be used for replacement. | ## Examples | Parameter a | Parameter b | Parameter c | Result | | --- | --- | --- | --- | | ABC | 41,42,43 | 44,45,46 | DEF | | abc€ | 20ac,41 | 45,44 | abcE |