You are here

public function RegexCounter::count in Bibliography Module 7.2

Returns how many groups (non-named) there are in the given pattern

Ignores namesGroups and numberedGroups for simplicity

Parameters

string $pattern:

Return value

int

File

lib/msrc-authortool/src/Nametools/RegexCounter.php, line 24

Class

RegexCounter
Regexcounter is a class that counts the expected number of matches for a given REGEX pattern

Namespace

Nametools

Code

public function count($pattern) {
  return $this
    ->countGroups($pattern, $null, $null);
}