--TEST--
string_method: match
--FILE--
match($regex1, PREG_OFFSET_CAPTURE);
preg_match($regex1, $str, $matches2, PREG_OFFSET_CAPTURE);
Assert::eq($matches, $matches2);
$html = "bold textclick me";
$regex2 = "/(<([\w]+)[^>]*>)(.*?)(<\/\\2>)/";
preg_match_all($regex2, $html, $matches2, PREG_SET_ORDER);
$matches = $html->matchAll($regex2, PREG_SET_ORDER);
Assert::eq($matches, $matches2);
}
?>
--EXPECT--