Qustion about GET action designer

Morgan

Пользователь
Регистрация
30.11.2015
Сообщения
118
Благодарностей
12
Баллы
18
Hi.

I have tried to use the GET in the action designer to grab a value, so i can evaluate what to do next.

The problem is that i need the integer to make a simple logic to check if the variable recived was =< some other integer.

But what i get is the hole inner HTML which contains alot of code and some text, is there a way to extract only the 2 siffer integer?

Thanks
 

qzen4i

Client
Регистрация
01.05.2014
Сообщения
1 404
Благодарностей
312
Баллы
83
Hi.

I have tried to use the GET in the action designer to grab a value, so i can evaluate what to do next.

The problem is that i need the integer to make a simple logic to check if the variable recived was =< some other integer.

But what i get is the hole inner HTML which contains alot of code and some text, is there a way to extract only the 2 siffer integer?

Thanks
Do regex, and try with it, write here the html you had, and say what you need to grab out there, i`ll help you to do a regex.
 

Morgan

Пользователь
Регистрация
30.11.2015
Сообщения
118
Благодарностей
12
Баллы
18
<div class="imagefitReplies">
3682
</div>

I need to grab the integers only, so i can set my variable value :-)
 

qzen4i

Client
Регистрация
01.05.2014
Сообщения
1 404
Благодарностей
312
Баллы
83
Operations with text=>regex and set the regex like this


first regex

Код:
\d+

If the html is much bigger then you had send, then try like this second regex

Код:
(?<="imagefitReplies">)[\w\W]*(?=</div>)


 
  • Спасибо
Реакции: Morgan

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