Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Wyrażenie regularne
Wicepsik
post
Post #1





Grupa: Zarejestrowani
Postów: 1 575
Pomógł: 299
Dołączył: 26.03.2009

Ostrzeżenie: (20%)
X----


[JAVASCRIPT] pobierz, plaintext
  1. var str = document.body.innerHTML;
  2. var pat = /mod=player&p=[0-9]+&sh=5b7c0d5ba35f85939a772b8">[^<]+/
  3. var result = str.match(pat);
  4.  
  5. for(i = 0; i < result.length; i++)
  6. {
  7. alert("Match #" + (i+1) + ": " + result[i]);
  8. }
[JAVASCRIPT] pobierz, plaintext


Potrzebuje stworzyć wyrażenie regularne. Nie działa mi :/
Czytam te tutoriale ale nadal nic (IMG:style_emoticons/default/wstydnis.gif)



  1. <td><a href="index.php?mod=player&p=196829&sh=5b7c0d5ba35f85939a772b8">qdc3</a></td>
  2.  
  3. </tr>
  4. <tr>
  5. <th>449</th>
  6. <td><a href="index.php?mod=player&p=55511&sh=5b7c0d5ba35f85939a772b8">Lordolek5</a></td>


Ten post edytował Wicepsik 16.01.2010, 17:23:34
Go to the top of the page
+Quote Post

Posty w temacie
- Wicepsik   Wyrażenie regularne   16.01.2010, 17:20:18
- - kamil4u   Kodvar pat = /mod=player&p=[0-9]+...   16.01.2010, 17:42:10
- - Wicepsik   Znaleźć wszystkich graczy na tej stronie. Niestety...   16.01.2010, 17:49:06
- - kamil4u   Kod<div id="test"> <td...   16.01.2010, 18:11:52


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.08.2025 - 17:51