Help in regex with variable

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

twaccou

Новичок
Регистрация
10.08.2019
Сообщения
4
Реакции
0
Баллы
1
Hello
I created a project and want to scrap two pieces of text from two website i can't figure out how to deal with regex to find these text.
First one:
title="Women">305.4</a></div>
here Women is a variable from my list can be any other word. and i want to scrap the number next to it (305.4) this number will change with each variable.
so i think the regex maybe word before: title="variable"> word after:</a> but i cant write it in regex designer.

The second one :maybe will be more clear with an image . i want to scrap ( HQ1206) the text next to the highest number ( 88 ) and after my variable (305.4).

hsyh.png


and the source code
x958.jpg


your help will be very appreciated . attached is htm source code for both websites
 

Вложения

You can't insert the variable per day, but you can parse the content of the variable. I hope i'm making sense here.
 
Just like this:
\w+Woman\d+
\w+{-Variable.Keyword-}\d+
variable macro don't work in regex tester, but will work in Textprocessing>Regex action block.
 

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