AMPscript String Functions
Use the AMPscript string functions to display and manipulate strings.
This table lists all of the AMPscript functions related to modifying strings. The value in the Engagement column indicates whether Marketing Cloud Engagement supports the function. The value in the Next column indicates whether Marketing Cloud Next supports the function.
| Function Name | Description | Engagement | Next |
|---|---|---|---|
| Char() | Returns a character when passed an ASCII character code. | ✅ Yes | ❌ No |
| Concat() | Concatenates strings of text. | ✅ Yes | ✅ Yes |
| Format() | Formats a string in the specified format. | ✅ Yes | ✅ Yes |
| IndexOf() | Returns the position at which a substring occurs within a string. | ✅ Yes | ✅ Yes |
| Length() | Returns the number of characters in a string. | ✅ Yes | ✅ Yes |
| Lowercase() | Returns the provided string using only lowercase letters. | ✅ Yes | ✅ Yes |
| ProperCase() | Returns specified string with the first letter of each word capitalized. | ✅ Yes | ✅ Yes |
| RegExMatch() | Searches for a pattern in a string using a regular expression. | ✅ Yes | ❌ No |
| Replace() | Replaces every occurrence of one substring with a different substring. | ✅ Yes | ✅ Yes |
| ReplaceList() | Replaces one or more substrings with another string. | ✅ Yes | ✅ Yes |
| StringToHex() | Converts each character in a string to its hexadecimal equivalent. | ✅ Yes | ❌ No |
| Substring() | Returns a portion of a string, beginning at a specified character position. | ✅ Yes | ✅ Yes |
| Trim() | Removes white space from the beginning and end of a string. | ✅ Yes | ✅ Yes |
| Uppercase() | Returns the provided string using only uppercase letters. | ✅ Yes | ✅ Yes |