this is driving my crazy:
$set = '<Error Type="string" Value="System Error" /><ErrorCode
Type="int" Value="0" />';
preg_match('%<E rror .*? Value="(.*)"%', $set, $matches);
echo $matches[1];
returns: System Error" />
why on earth does it include the " /> part when my pattern clearly asks
only to capture what's between the double quotes with "(.*)" ?
$set = '<Error Type="string" Value="System Error" /><ErrorCode
Type="int" Value="0" />';
preg_match('%<E rror .*? Value="(.*)"%', $set, $matches);
echo $matches[1];
returns: System Error" />
why on earth does it include the " /> part when my pattern clearly asks
only to capture what's between the double quotes with "(.*)" ?
Comment