Question
How to remove characters from a string ?
You have a list of strings like:
{"ABHello", "ABAppian", "ABWorld"}
Each value starts with "AB", and the goal is to remove this prefix from every string.
A
Anonymous
April 9, 2026
51
Answer
We can achieve this using a!forEach() along with the mid() and len() functions.
a!localVariables(
local!array: {"ABHello", "ABAppian", "ABWorld"},
a!forEach(
items: local!array,
expression: mid(fv!item, 3, len(fv!item)-2)
)
)
Explanation
- a!forEach() iterates through each item in the list
- fv!item represents the current string
- mid() extracts a substring:
- Starts at position 3 (skipping "AB")
- Extracts the remaining characters dynamically using len()
This ensures that no matter the length of the string, the first two characters are always removed.

JuniorExpressions#coding
Loading comments...