Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Wyrażenie regularne, problem ..
ciniutek
post
Post #1





Grupa: Zarejestrowani
Postów: 31
Pomógł: 0
Dołączył: 29.05.2011

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


Witam . Mam pewien problem z wyrażeniem regularnym . Dokładnie to z wyciągnięciem pewnej treści .. Mam do wyciągnięcia dwie linijki kodu :

  1. <div style="cursor: pointer;" id="menuc286">tytuł</div>
  2. <div style='display: none;' class='hideit menuh286'>


Próbowałem stosować już \n ale nic nie daje ..
A oto kawałek mojego skryptu :

  1. $regexp = "<div style=\"cursor: pointer;\" id=\"(.*)\">(.*)<\/div>";
  2. if(preg_match_all("/$regexp/", $nowe, $matches, PREG_SET_ORDER)) {
  3. foreach($matches as $match)
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 20.08.2025 - 08:57