Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> szukam wyrażenia regularnego
Superhero
post
Post #1





Grupa: Zarejestrowani
Postów: 16
Pomógł: 0
Dołączył: 27.07.2004

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


potrzebuję wyrażenia regularnego, które z linijek takich jak:

<td><a title="" class=" aslink " href="/music/Art+Of+Fighting">Art Of Fighting</a></td>
albo
<td><a title="" class=" " href="/music/Low">Low</a></td>
albo
<td><a title="" class=" " href="/music/PAN%E2%80%A2AMERICAN">PAN&bull;AMERICAN</a></td>


wyciągnęłoby mi odpowiednio: Art Of Fighting, Low, PAN&bull;AMERICAN.
czasem jest class=" aslink ", czasem class=" "
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 1)
crash
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 2 196
Pomógł: 2
Dołączył: 17.01.2004
Skąd: Sosnowiec

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


A szukałeś coś, próbowałeś?

  1. <?php
  2. preg_match_all( '#href=\"/music/([^\"]+)\"#', $t, $o );
  3. print_r( $o[ 1 ] );
  4. ?>


--------------------
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 Aktualny czas: 21.08.2025 - 01:08