Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Wyrażenie regularne - problem
foxbond
post
Post #1





Grupa: Zarejestrowani
Postów: 162
Pomógł: 12
Dołączył: 20.12.2009
Skąd: Siedlce

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


Jak za pomocą wyrażeń regularnych wyciągnąć liczbę 6 (IMG:style_emoticons/default/questionmark.gif)
  1. <div id="energy"> <b>6</b> / <b>10</b> </div>


Próbowałem tak:
  1. preg_match('/^<div id="energy"> <b>[0-9]<\/b>/', $gra_curl, $energia);
  2. print_r($energia);


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 - 22:53