How can I get only the first 3 letters of a variable?

burnik

Новичок
Регистрация
04.05.2020
Сообщения
20
Благодарностей
2
Баллы
3
Have a variable with postal code:

Can be like:
P5A 1N9

I need to get only the first 3 characters of this variable.
So that result will be:

"P5A"

How can this be done in Zennoposter?
I have tried the "trim" feature and it doesn't seem to work.

Thx
 

burnik

Новичок
Регистрация
04.05.2020
Сообщения
20
Благодарностей
2
Баллы
3
Issue solved with use of Regex:

^.{0,3}
 

EtaLasquera

Client
Регистрация
02.01.2017
Сообщения
524
Благодарностей
112
Баллы
43
Inside Data > Text processing > Substring
{-Variable.myvar-}
Substring from 0 to 2
(0=1; 1=2; 2=3)
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)