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

Breadcrumb

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

function Regex::isMatch

Parameters

non-empty-string $pattern:

File

vendor/composer/pcre/src/Regex.php, line 19

Class

Regex

Namespace

Composer\Pcre

Code

public static function isMatch(string $pattern, string $subject, int $offset = 0) : bool {
    return (bool) Preg::match($pattern, $subject, $matches, 0, $offset);
}
RSS feed
Powered by Drupal