public function getAll($value, $pattern, $group = 0)
{
$this->assertNoEval($pattern);
if (!isset($value)) {
return null;
}
if (!preg_match_all($pattern, $value, $matches, PREG_PATTERN_ORDER)) {
return array();
}
return isset($matches[$group]) ? $matches[$group] : array();
}