03-04-2008, 09:13 PM
|
#1 (permalink)
|
|
The Addict
Join Date: Nov 2007
Posts: 264
Thanks: 2
|
Regex - value return
PHP Code:
$regex ='/<span id="maplat">(.*?)<\\/span><\\/label> | <label><span id="maplong">(.*?)<\\/span>/Us';
preg_match($regex,$result,$matche);
print_r($matche);
Maybe I'm mistaken but I though for each (.*?) the value was returned into the matches array - it's returning 2 identical values which come from <spam id="maplong">(.*?)<\\/span>, Some help :)
Hopefully I'm just missing something terribly obvious.
__________________
"What everyone seems to forget is that while knowledge certainly is something - it's the implementation of knowledge that brings power" - Andres Galindo.
|
|
|
|