Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Wyrażenie regularne do wyciągnięcia wartości z kodu HTML
comzit
post
Post #1





Grupa: Zarejestrowani
Postów: 53
Pomógł: 0
Dołączył: 14.11.2003
Skąd: Warszawa

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


Potrzebuję wyrażenia regularnego do wyciągnięcia wyróżnionej w kodzie wartości. Ta wartość oczywiście ciągle się zmienia.
Będę niezmiernie wdzięczny za pomoc.

  1. <!-- Actual table body -->
  2. <table width="100%" border="0" cellspacing="0" cellpadding="1" bgcolor="#FFFFFF">
  3. <tr align="center">
  4. <td class="sb" align="left"><img src="http://www.kitco.com/images/1.gif" border="0" width="2" height="2">Currency</td>
  5. <td class="sb" title="Click to see details of exchange rates."><a href="java script:ExchRateDetails();" class="sb">Chg%<br>X=1$USD</a></td>
  6. <td class="sb">NY Time</td>
  7. <td class="sb">X=<br>1$USD</td>
  8. <td class="sb">X$USD<br>=1</td>
  9. <td class="sb">Gold<br>Price/oz</td>
  10. <td class="sb">Gold<br>Chg</td>
  11. <td class="sb" colspan="2">Gold<br>Chg%</td>
  12. </tr>
  13.  
  14. <tr align="right" bgcolor="#f3f3e4"><!-- Gold in USD -->
  15. <td align="left"><img src="http://www.kitco.com/images/1.gif" border="0" width="2" height="2"><b><a href="java script:KitcoIndex('charts.htm?USD','USD');">US Dollar</a></b></td>
  16. <td class="sm"><b>--</b></td>
  17. <td class="sm" align="center"><b>08/30-04:01</b></td>
  18. <td class="sm"><b>--</b></td>
  19. <td class="sm"><b>--</b></td>
  20. <td class="sm"><b>1236.20</b></td>
  21. <td class="sm"><b><font color="red">-1.90</font></b></td>
  22. <td class="sm" align="right"><img src="http://www.kitco.com/images/1.gif" border="0" width="1" height="2"><img src="http://www.kitco.com/images/down.gif" width="10" height="10" alt="up/down"></td>
  23. <td class="sm"><b><font color="red">-0.15%</font></b><img src="http://www.kitco.com/images/1.gif" border="0" width="1" height="2"></td>
  24. </tr>
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: 14.09.2025 - 20:41