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

Breadcrumb

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

function AbstractString::match

Matches the string using a regular expression.

Pass PREG_PATTERN_ORDER or PREG_SET_ORDER as $flags to get all occurrences matching the regular expression.

Return value

array All matches in a multi-dimensional array ordered according to flags

2 methods override AbstractString::match()
AbstractUnicodeString::match in vendor/symfony/string/AbstractUnicodeString.php
Matches the string using a regular expression.
ByteString::match in vendor/symfony/string/ByteString.php
Matches the string using a regular expression.

File

vendor/symfony/string/AbstractString.php, line 404

Class

AbstractString
Represents a string of abstract characters.

Namespace

Symfony\Component\String

Code

public abstract function match(string $regexp, int $flags = 0, int $offset = 0) : array;

API Navigation

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