How to regex these fields help needed

Harrythespammy

Новичок
Регистрация
28.02.2012
Сообщения
22
Благодарностей
0
Баллы
0
Hi guys,

I'm living a nihtmare with this website I m'trying to scrap:

Th DOM HTML looks like this:

<div class="infos address">
<div></div>
<div>26 clifford street</div>
<div>31TG45&nbsp;Bighton&nbsp;</div>
</div>
<div class="infos telephone"

the regex designer do'nt accept:
"<div></div>
<div>"
in the "before search text" field because of the line break.

I'm totally stucked, Any idea is greatly appreciated !
 
Регистрация
01.02.2011
Сообщения
99
Благодарностей
15
Баллы
0
I'd do multiple regex parses.

1. One regex pass gets the whole div block for "infos address" class, and saves to file.

2. Now just pick off the lines you want for regex by the file line count. If you use <div class="infos address"> for before search txt, and <div class="infos telephone" for after search txt, lines 2 & 3 will have the address details for regexing out the <div>.
 
  • Спасибо
Реакции: Harrythespammy

Harrythespammy

Новичок
Регистрация
28.02.2012
Сообщения
22
Благодарностей
0
Баллы
0
Humm this sounds really good to me. I'm gonna try this. Thanks a lot Captain!
 

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