function Regex::matchAllStrictGroups
Variant of `matchAll()` which returns non-null matches (or throws)
Parameters
non-empty-string $pattern:
int-mask<PREG_UNMATCHED_AS_NULL> $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported:
Throws
File
-
vendor/
composer/ pcre/ src/ Regex.php, line 86
Class
Namespace
Composer\PcreCode
public static function matchAllStrictGroups(string $pattern, string $subject, int $flags = 0, int $offset = 0) : MatchAllStrictGroupsResult {
self::checkOffsetCapture($flags, 'matchAllWithOffsets');
self::checkSetOrder($flags);
// @phpstan-ignore composerPcre.maybeUnsafeStrictGroups
$count = Preg::matchAllStrictGroups($pattern, $subject, $matches, $flags, $offset);
return new MatchAllStrictGroupsResult($count, $matches);
}