Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP] preg_match
nmts
post 22.11.2009, 21:43:22
Post #1





Grupa: Zarejestrowani
Postów: 283
Pomógł: 34
Dołączył: 21.03.2008

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


Nienawidzę wyrażeń regularnych! dry.gif

Jak mogę wyciąć poszczególne dane z tabelki z: http://gourl.org/m6c

  1. preg_match('/<tr>
  2. <td class="user_even">
  3. <span class="user_left">Online:<\/span>
  4. <\/td>
  5. <td class="user_even" width="170">
  6. <span class="user_right">(.*)<\/span>
  7.  
  8. <\/td>
  9. <\/tr>
  10. <tr>
  11. <td class="user_odd">
  12. <span class="user_left">Status:<\/span>
  13. /',$content,$online);

Dla "No" coś takiego nie działa. tongue.gif


--------------------
Free Web Tools - narzędzia dla programistów, webdeveloperów i specjalistów seo...
Go to the top of the page
+Quote Post
athei
post 22.11.2009, 22:14:47
Post #2





Grupa: Zarejestrowani
Postów: 389
Pomógł: 141
Dołączył: 11.04.2009

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


Kod
preg_match_all("/\<span class=\"user_right\"\>(.*)\<\/span\>/",$content,$online);
Go to the top of the page
+Quote Post

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 Wersja Lo-Fi Aktualny czas: 13.06.2025 - 09:46