Counting returned elements?!

Fooksie

Новичок
Регистрация
28.03.2016
Сообщения
1
Благодарностей
0
Баллы
1
I am using ZP Pro and have a regex I use in actiondesigner to find certain links. It can return 1 or 10 matches.
What I would like to do is count the number of returned results or have all of them stored into a list.

I know I can manually tell which match I want to be fetched and stored in a variable but since the amount of matches is dynamic depending on the page it crawls I would really like to be able to access ZP's internal variable to display the amount of matches it detected (as it does in actiondesigner) or use any other working approach to detect how many matches it has based on a regular expression .

Anyone who solved this issue ?

Thanks in advance !
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
Do you need to count them before you save this data?
Cause if you need it after, you can count number of lines in List which was used for parsing results
 

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