Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Wyrażenia regularne - pomoc
Armageddon
post
Post #1





Grupa: Zarejestrowani
Postów: 14
Pomógł: 0
Dołączył: 18.03.2007

Ostrzeżenie: (0%)
-----


Witam,

mam taki problem - pobieram kod strony i muszę przefiltrować go przez jakieś wyrażenie regularne, które wyciągnie zawartość div'a (<div class="file_mini_user">).

Do tej pory skleciłem coś takiego, ale nie działa (IMG:style_emoticons/default/wstydnis.gif)

Kod
/^\<(div).(class)\=\"(file_mini_user)\"\>(.*)\<(div)\/\>$/


oczywiście filtruję przez funkcje preg_match_all

Ten post edytował Armageddon 18.11.2009, 10:35:24
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Fifi209
post
Post #2





Grupa: Zarejestrowani
Postów: 4 655
Pomógł: 556
Dołączył: 17.03.2009
Skąd: Katowice

Ostrzeżenie: (0%)
-----


Kod
#<div class="file_mini_user">([^<]+)</div>#is


Ten post edytował fifi209 18.11.2009, 15:09:14
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 14.10.2025 - 16:53