Qustion about GET action designer

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

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
 
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.
 
<div class="imagefitReplies">
3682
</div>

I need to grab the integers only, so i can set my variable value :)
 
Operations with text=>regex and set the regex like this
KAgkoOWigXY48A.jpg


first regex

Код:
Развернуть Свернуть Копировать
\d+


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

Код:
Развернуть Свернуть Копировать
(?<="imagefitReplies">)[\w\W]*(?=</div>)



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

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