Help in regex with variable

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).



and the source code


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

Вложения

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 218
Благодарностей
5 843
Баллы
113

twaccou

Новичок
Регистрация
10.08.2019
Сообщения
4
Благодарностей
0
Баллы
1

awzse00

Client
Регистрация
16.03.2013
Сообщения
231
Благодарностей
36
Баллы
28
You can't insert the variable per day, but you can parse the content of the variable. I hope i'm making sense here.
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 218
Благодарностей
5 843
Баллы
113

twaccou

Новичок
Регистрация
10.08.2019
Сообщения
4
Благодарностей
0
Баллы
1

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 218
Благодарностей
5 843
Баллы
113
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.
 

twaccou

Новичок
Регистрация
10.08.2019
Сообщения
4
Благодарностей
0
Баллы
1

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