Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Preg.php

function Preg::isMatchStrictGroups

Variant of `isMatch()` which outputs non-null matches (or throws)

@param-out array<int|string, string> $matches

Parameters

non-empty-string $pattern:

array<mixed> $matches Set by method:

int-mask<PREG_UNMATCHED_AS_NULL> $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported:

Throws

UnexpectedNullMatchException

37 calls to Preg::isMatchStrictGroups()
ArchiveCommand::selectPackage in vendor/composer/composer/src/Composer/Command/ArchiveCommand.php
BinaryInstaller::determineBinaryCaller in vendor/composer/composer/src/Composer/Installer/BinaryInstaller.php
ClassMapGenerator::normalizePath in vendor/composer/class-map-generator/src/ClassMapGenerator.php
Normalize a path. This replaces backslashes with slashes, removes ending slash and collapses redundant separators and up-level references.
ComposerRepository::search in vendor/composer/composer/src/Composer/Repository/ComposerRepository.php
@inheritDoc
ConfigCommand::execute in vendor/composer/composer/src/Composer/Command/ConfigCommand.php

... See full list

File

vendor/composer/pcre/src/Preg.php, line 314

Class

Preg

Namespace

Composer\Pcre

Code

public static function isMatchStrictGroups(string $pattern, string $subject, ?array &$matches = null, int $flags = 0, int $offset = 0) : bool {
    return (bool) self::matchStrictGroups($pattern, $subject, $matches, $flags, $offset);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal