diff --git a/cake/libs/set.php b/cake/libs/set.php index ce0eae7dd..f63138451 100644 --- a/cake/libs/set.php +++ b/cake/libs/set.php @@ -404,7 +404,7 @@ class Set extends Object { $contexts = array($data); } - $tokens = array_slice(explode('/', $path), 1); + $tokens = array_slice(preg_split('/(?assertEqual($r, $expected); + + $expected = array(1, 3); + $r = Set::extract('/User[name=/n/]/id', $tricky); + $this->assertEqual($r, $expected); $common = array( array(