Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Preg match
tabbi
post 2.02.2011, 19:42:50
Post #1





Grupa: Zarejestrowani
Postów: 150
Pomógł: 3
Dołączył: 30.10.2010

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


Witam,

KOD:

  1. <tr><td style="padding-left:4px;">Filename: &nbsp;</td><td><b>
  2. asd
  3. </b></td></tr>


chce wyciągnąć "asd"

  1. preg_match('/<tr><td style="padding-left:4px;">Filename: &nbsp;<\/td><td><b>+\n+(.*?)+\n<\/b><\/td>/',$DownloadSite, $tytul);


probowałem tak ale nie działa niestety.

Udało mi się:

  1. preg_match('/<tr><td style="padding-left:4px;">Filename: &nbsp;<\/td><td><b>([^<]+)<\/b>/',$DownloadSite, $tytul);


Ten post edytował tabbi 2.02.2011, 20:38:44
Go to the top of the page
+Quote Post

Posty w temacie
- tabbi   Preg match   2.02.2011, 19:42:50


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: 24.07.2025 - 21:44