Newbie help - Editing a Variable

  • Автор темы Автор темы craguss
  • Дата начала Дата начала

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?
 
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
 
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?
 
You should use action Text Processing>Regex and the following Regex: \d+
 

Вложения

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