Newbie help - Editing a Variable

craguss

Новичок
Регистрация
14.07.2020
Сообщения
2
Благодарностей
0
Баллы
1
Hi, I recently decided to use Zennoposter for creating apps.

One thing I would like to do and I'm sure there is a simple way, I just cant find it, is to edit a variable.

So I have parsed some html page and got this text in a variable "236 Results"

I simply want to remove the regular expression " Results" to leave me with just the number which I can then use in a loop. Ps the number 236 changes each time I run a different page.

Any help please?
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
Hi, I recently decided to use Zennoposter for creating apps.

One thing I would like to do and I'm sure there is a simple way, I just cant find it, is to edit a variable.

So I have parsed some html page and got this text in a variable "236 Results"

I simply want to remove the regular expression " Results" to leave me with just the number which I can then use in a loop. Ps the number 236 changes each time I run a different page.

Any help please?
Hello and welcome.
If You want to edit variable then please look there https://zennolab.com/wiki/en:variables
If You want to edit variable VALUE then this is a different story.
For creating regexes you have to use Regex designer ex. https://i.imgur.com/7VIcqDO.png
Hope that helps
 

craguss

Новичок
Регистрация
14.07.2020
Сообщения
2
Благодарностей
0
Баллы
1
Hello and welcome.
If You want to edit variable then please look there https://zennolab.com/wiki/en:variables
If You want to edit variable VALUE then this is a different story.
For creating regexes you have to use Regex designer ex. https://i.imgur.com/7VIcqDO.png
Hope that helps
Thanks for this. Yes I am trying to edit the value.

And I am begginer when it comes to Regex, but can understnad that a little.

Where exactly am I putting the regex code in order to edit the variable?
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 453
Благодарностей
5 913
Баллы
113
You should use action Text Processing>Regex and the following Regex: \d+
 

Вложения

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