Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Preg_match, Pomoc w wyrażeniu regularnym
Sean Foster
post
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 13.04.2010

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


Jak za pomocą wyrażeń regularnych wyciągnąć adres url (IMG:style_emoticons/default/questionmark.gif)
  1. <tr><td>21</td>
  2. <td>
  3. <a href="wyzwij/5609/bua/">


Próbowałem tak:
  1. preg_match('/<tr><td>21<\/td>
  2. <td>
  3. <a href="([a-zA-Z0-9\.\-\_]+)">/', $curl, $adres);
  4.  
  5. print_r($adres);
  6. //lub
  7. preg_match('/<tr><td>21<\/td> \n
  8. <td> \n
  9. <a href="([a-zA-Z0-9\.\-\_]+)">/', $curl, $adres);
  10. //lub
  11. preg_match('/<tr><td>21<\/td>
  12. <td>
  13. <a href="[a-zA-Z0-9\.\-\_]">/', $curl, $adres);


Ale jedynym wynikiem było
Kod
Array
(
)
lub

Array


Z góry dziękuję.

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: 24.12.2025 - 20:42